summaryrefslogtreecommitdiff
path: root/Lib/test
diff options
context:
space:
mode:
authorAndrés Delfino <adelfino@gmail.com>2018-04-30 13:30:53 -0300
committerVictor Stinner <vstinner@redhat.com>2018-04-30 18:30:53 +0200
commitc3b7a6dfb9c7e69093c9fe78ab587e14743e5152 (patch)
treef36dab1ca2f3f19d1904337799749e4c48172e93 /Lib/test
parent6405feecda6a5d5dd7a4240eb3054a2676ed29b1 (diff)
downloadcpython-git-c3b7a6dfb9c7e69093c9fe78ab587e14743e5152.tar.gz
bpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654)
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_regrtest.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index 8364767b3a..c40b5182a8 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -594,6 +594,8 @@ class ProgramsTestCase(BaseTestCase):
def test_pcbuild_rt(self):
# PCbuild\rt.bat
script = os.path.join(ROOT_DIR, r'PCbuild\rt.bat')
+ if not os.path.isfile(script):
+ self.skipTest(f'File "{script}" does not exist')
rt_args = ["-q"] # Quick, don't run tests twice
if platform.architecture()[0] == '64bit':
rt_args.append('-x64') # 64-bit build