summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_httpservers.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-08-06 11:51:29 (GMT)
committerGitHub <noreply@github.com>2020-08-06 11:51:29 (GMT)
commit79bb2c93f2d81702fdf1f93720369e18a76b7d1a (patch)
tree6ab9d0c6ef07954cc871dd6eb06f3a80329d33e6 /Lib/test/test_httpservers.py
parent52f98424a55e14f05dfa7483cc0faf634a61c9ff (diff)
downloadcpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.zip
cpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.tar.gz
cpython-79bb2c93f2d81702fdf1f93720369e18a76b7d1a.tar.bz2
bpo-40275: Use new test.support helper submodules in tests (GH-21743)
Diffstat (limited to 'Lib/test/test_httpservers.py')
-rw-r--r--Lib/test/test_httpservers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_httpservers.py b/Lib/test/test_httpservers.py
index 0c871af..a7e1719 100644
--- a/Lib/test/test_httpservers.py
+++ b/Lib/test/test_httpservers.py
@@ -67,7 +67,7 @@ class TestServerThread(threading.Thread):
class BaseTestCase(unittest.TestCase):
def setUp(self):
self._threads = threading_helper.threading_setup()
- os.environ = support.EnvironmentVarGuard()
+ os.environ = os_helper.EnvironmentVarGuard()
self.server_started = threading.Event()
self.thread = TestServerThread(self, self.request_handler)
self.thread.start()
@@ -621,7 +621,7 @@ class CGIHTTPServerTestCase(BaseTestCase):
# The shebang line should be pure ASCII: use symlink if possible.
# See issue #7668.
self._pythonexe_symlink = None
- if support.can_symlink():
+ if os_helper.can_symlink():
self.pythonexe = os.path.join(self.parent_dir, 'python')
self._pythonexe_symlink = support.PythonSymlink(self.pythonexe).__enter__()
else: