mirror of
https://github.com/python/cpython.git
synced 2025-12-08 06:10:17 +00:00
bpo-40275: Use new test.support helper submodules in tests (GH-21448)
This commit is contained in:
parent
bb0424b122
commit
4660597b51
20 changed files with 185 additions and 154 deletions
|
|
@ -5,6 +5,7 @@
|
|||
|
||||
from test import test_tools
|
||||
from test import support
|
||||
from test.support import os_helper
|
||||
from test.support.script_helper import assert_python_ok
|
||||
|
||||
test_tools.skip_if_missing("peg_generator")
|
||||
|
|
@ -68,7 +69,7 @@ def setUp(self):
|
|||
self.skipTest("The %r command is not found" % cmd)
|
||||
super(TestCParser, self).setUp()
|
||||
self.tmp_path = self.mkdtemp()
|
||||
change_cwd = support.change_cwd(self.tmp_path)
|
||||
change_cwd = os_helper.change_cwd(self.tmp_path)
|
||||
change_cwd.__enter__()
|
||||
self.addCleanup(change_cwd.__exit__, None, None, None)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue