MCPcopy Index your code
hub / github.com/python/cpython / test_pcbuild_rt

Method test_pcbuild_rt

Lib/test/test_regrtest.py:983–999  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

981
982 @unittest.skipUnless(sys.platform == 'win32', 'Windows only')
983 def test_pcbuild_rt(self):
984 # PCbuild\rt.bat
985 script = os.path.join(ROOT_DIR, r'PCbuild\rt.bat')
986 if not os.path.isfile(script):
987 self.skipTest(f'File "{script}" does not exist')
988 rt_args = ["-q"] # Quick, don't run tests twice
989 if platform.machine() == 'ARM64':
990 rt_args.append('-arm64') # ARM 64-bit build
991 elif platform.machine() == 'ARM':
992 rt_args.append('-arm32') # 32-bit ARM build
993 elif platform.architecture()[0] == '64bit':
994 rt_args.append('-x64') # 64-bit build
995 if support.Py_DEBUG:
996 rt_args.append('-d') # Debug build, use python_d.exe
997 if sysconfig.get_config_var("Py_GIL_DISABLED"):
998 rt_args.append('--disable-gil')
999 self.run_batch(script, *rt_args, *self.regrtest_args, *self.tests)
1000
1001
1002@support.force_not_colorized_test_class

Callers

nothing calls this directly

Calls 5

run_batchMethod · 0.95
skipTestMethod · 0.80
joinMethod · 0.45
isfileMethod · 0.45
appendMethod · 0.45

Tested by

no test coverage detected