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

Victor Stinner webhook-mailer at python.org
Mon Apr 30 12:30:56 EDT 2018


https://github.com/python/cpython/commit/c3b7a6dfb9c7e69093c9fe78ab587e14743e5152
commit: c3b7a6dfb9c7e69093c9fe78ab587e14743e5152
branch: master
author: Andrés Delfino <adelfino at gmail.com>
committer: Victor Stinner <vstinner at redhat.com>
date: 2018年04月30日T18:30:53+02:00
summary:
bpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654)
files:
M Lib/test/test_regrtest.py
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index 8364767b3a30..c40b5182a863 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -594,6 +594,8 @@ def test_tools_buildbot_test(self):
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /