diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-07-09 13:25:10 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-09 13:25:10 (GMT) |
commit | 96a6a6d42be272a27562d98549bbffc0d1854669 (patch) | |
tree | 9c4fc12729aa2accce4ca953a6431acec87cf542 /Lib/test/test_gettext.py | |
parent | 61bb24a270d15106decb1c7983bf4c2831671a75 (diff) | |
download | cpython-96a6a6d42be272a27562d98549bbffc0d1854669.zip cpython-96a6a6d42be272a27562d98549bbffc0d1854669.tar.gz cpython-96a6a6d42be272a27562d98549bbffc0d1854669.tar.bz2 |
bpo-40275: Use new test.support helper submodules in tests (GH-21412)
Diffstat (limited to 'Lib/test/test_gettext.py')
-rw-r--r-- | Lib/test/test_gettext.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Lib/test/test_gettext.py b/Lib/test/test_gettext.py index baf300b..df9eae3 100644 --- a/Lib/test/test_gettext.py +++ b/Lib/test/test_gettext.py @@ -5,6 +5,7 @@ import gettext import unittest from test import support +from test.support import os_helper # TODO: @@ -129,14 +130,14 @@ class GettextBaseTest(unittest.TestCase): fp.write(base64.decodebytes(UMO_DATA)) with open(MMOFILE, 'wb') as fp: fp.write(base64.decodebytes(MMO_DATA)) - self.env = support.EnvironmentVarGuard() + self.env = os_helper.EnvironmentVarGuard() self.env['LANGUAGE'] = 'xx' gettext._translations.clear() def tearDown(self): self.env.__exit__() del self.env - support.rmtree(os.path.split(LOCALEDIR)[0]) + os_helper.rmtree(os.path.split(LOCALEDIR)[0]) GNU_MO_DATA_ISSUE_17898 = b'''\ 3hIElQAAAAABAAAAHAAAACQAAAAAAAAAAAAAAAAAAAAsAAAAggAAAC0AAAAAUGx1cmFsLUZvcm1z |