From 8075868f19967f291f123f17962a453b38dec8d2 Mon Sep 17 00:00:00 2001 From: "Miss Islington (bot)" <31488909+miss-islington@users.noreply.github.com> Date: Mon, 30 Apr 2018 13:36:49 -0700 Subject: [PATCH] bpo-33352: Skip test_regrtest test if rt.bat does not exist (GH-6654) (#6656) MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit (cherry picked from commit c3b7a6dfb9c7e69093c9fe78ab587e14743e5152) Co-authored-by: Andrés Delfino --- Lib/test/test_regrtest.py | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.50.1