diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-08-07 15:18:38 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-07 15:18:38 (GMT) |
commit | 598a951844122678de2596dbc1e0e09e2be65fd2 (patch) | |
tree | 23e7f7765fd015e838382e443f39269a2745fbc4 /Lib/test/test_startfile.py | |
parent | 46e19b61d31ba99f049258efa4ff1334856a3643 (diff) | |
download | cpython-598a951844122678de2596dbc1e0e09e2be65fd2.zip cpython-598a951844122678de2596dbc1e0e09e2be65fd2.tar.gz cpython-598a951844122678de2596dbc1e0e09e2be65fd2.tar.bz2 |
bpo-40275: Use new test.support helper submodules in tests (GH-21764)
Diffstat (limited to 'Lib/test/test_startfile.py')
-rw-r--r-- | Lib/test/test_startfile.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_startfile.py b/Lib/test/test_startfile.py index 1a26a80..589ffa2 100644 --- a/Lib/test/test_startfile.py +++ b/Lib/test/test_startfile.py @@ -9,6 +9,7 @@ import unittest from test import support +from test.support import os_helper import os import platform import sys @@ -27,7 +28,7 @@ class TestCase(unittest.TestCase): # we're not about to delete. If we're running under -j, that # means the test harness provided directory isn't a safe option. # See http://bugs.python.org/issue15526 for more details - with support.change_cwd(path.dirname(sys.executable)): + with os_helper.change_cwd(path.dirname(sys.executable)): empty = path.join(path.dirname(__file__), "empty.vbs") startfile(empty) startfile(empty, "open") |