Skip to content

Commit 8075868

Browse files
miss-islingtonandresdelfino
authored andcommitted
bpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654) (#6656)
(cherry picked from commit c3b7a6d) Co-authored-by: Andrés Delfino <adelfino@gmail.com>
1 parent 2e5fa38 commit 8075868

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

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)