summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_startfile.py
diff options
context:
space:
mode:
authorHai Shi <shihai1992@gmail.com>2020-08-07 15:18:38 (GMT)
committerGitHub <noreply@github.com>2020-08-07 15:18:38 (GMT)
commit598a951844122678de2596dbc1e0e09e2be65fd2 (patch)
tree23e7f7765fd015e838382e443f39269a2745fbc4 /Lib/test/test_startfile.py
parent46e19b61d31ba99f049258efa4ff1334856a3643 (diff)
downloadcpython-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.py3
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")