| 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 |