summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_peg_generator
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-08-03 16:49:18 (GMT)
committerGitHub <noreply@github.com>2020-08-03 16:49:18 (GMT)
commit4660597b51b3d14ce6269d0ed865ab7e22c6ae1f (patch)
tree00ab23106abb1d0023e261685dc4f2077002aabd /Lib/test/test_peg_generator
parentbb0424b122e3d222a558bd4177ce37befd3e0347 (diff)
downloadcpython-4660597b51b3d14ce6269d0ed865ab7e22c6ae1f.zip
cpython-4660597b51b3d14ce6269d0ed865ab7e22c6ae1f.tar.gz
cpython-4660597b51b3d14ce6269d0ed865ab7e22c6ae1f.tar.bz2
bpo-40275: Use new test.support helper submodules in tests (GH-21448)
Diffstat (limited to 'Lib/test/test_peg_generator')
-rw-r--r--Lib/test/test_peg_generator/test_c_parser.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_peg_generator/test_c_parser.py b/Lib/test/test_peg_generator/test_c_parser.py
index f993525..2c13635 100644
--- a/Lib/test/test_peg_generator/test_c_parser.py
+++ b/Lib/test/test_peg_generator/test_c_parser.py
@@ -5,6 +5,7 @@ from pathlib import Path
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 @@ class TestCParser(TempdirManager, unittest.TestCase):
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)