Skip to content

Commit c3b7a6d

Browse files
andresdelfinovstinner
authored andcommitted
bpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654)
1 parent 6405fee commit c3b7a6d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_regrtest.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -594,6 +594,8 @@ def test_tools_buildbot_test(self):
594594
def test_pcbuild_rt(self):
595595
# PCbuild\rt.bat
596596
script = os.path.join(ROOT_DIR, r'PCbuild\rt.bat')
597+
if not os.path.isfile(script):
598+
self.skipTest(f'File "{script}" does not exist')
597599
rt_args = ["-q"] # Quick, don't run tests twice
598600
if platform.architecture()[0] == '64bit':
599601
rt_args.append('-x64') # 64-bit build

0 commit comments

Comments
 (0)