diff options
| author | Hai Shi <shihai1992@gmail.com> | 2020-08-04 15:51:43 (GMT) |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-08-04 15:51:43 (GMT) |
| commit | 604bba1f8fe32479c89b9824b2231cc4480dd110 (patch) | |
| tree | 5b520e35b874539336997822a8d3d7bc621877b1 /Lib/test/test_multibytecodec.py | |
| parent | da4e09fff6b483fe858997da5599c25397107ca1 (diff) | |
| download | cpython-604bba1f8fe32479c89b9824b2231cc4480dd110.zip cpython-604bba1f8fe32479c89b9824b2231cc4480dd110.tar.gz cpython-604bba1f8fe32479c89b9824b2231cc4480dd110.tar.bz2 | |
bpo-40275: Use new test.support helper submodules in tests (GH-21452)
Diffstat (limited to 'Lib/test/test_multibytecodec.py')
| -rw-r--r-- | Lib/test/test_multibytecodec.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/Lib/test/test_multibytecodec.py b/Lib/test/test_multibytecodec.py index 3cf5d7b..7c3b67f 100644 --- a/Lib/test/test_multibytecodec.py +++ b/Lib/test/test_multibytecodec.py @@ -4,7 +4,8 @@ # from test import support -from test.support import TESTFN +from test.support import os_helper +from test.support.os_helper import TESTFN import unittest, io, codecs, sys import _multibytecodec @@ -57,7 +58,7 @@ class Test_MultibyteCodec(unittest.TestCase): code = '# coding: {}\n'.format(enc) exec(code) finally: - support.unlink(TESTFN) + os_helper.unlink(TESTFN) def test_init_segfault(self): # bug #3305: this used to segfault @@ -296,7 +297,7 @@ class Test_StreamReader(unittest.TestCase): finally: f.close() finally: - support.unlink(TESTFN) + os_helper.unlink(TESTFN) class Test_StreamWriter(unittest.TestCase): def test_gb18030(self): |
