bpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654)

This commit is contained in:
Andrés Delfino 2018-04-30 13:30:53 -03:00 committed by Victor Stinner
parent 6405feecda
commit c3b7a6dfb9
1 changed files with 2 additions and 0 deletions

View File

@ -594,6 +594,8 @@ class ProgramsTestCase(BaseTestCase):
def test_pcbuild_rt(self): def test_pcbuild_rt(self):
# PCbuild\rt.bat # PCbuild\rt.bat
script = os.path.join(ROOT_DIR, r'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 rt_args = ["-q"] # Quick, don't run tests twice
if platform.architecture()[0] == '64bit': if platform.architecture()[0] == '64bit':
rt_args.append('-x64') # 64-bit build rt_args.append('-x64') # 64-bit build