mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
bpo-37181: Fix test_regrtest failures on Windows arm64 (GH-13872)
This commit is contained in:
parent
740a84de73
commit
e7e5039d69
3 changed files with 8 additions and 3 deletions
|
@ -616,7 +616,9 @@ class ProgramsTestCase(BaseTestCase):
|
|||
# Tools\buildbot\test.bat
|
||||
script = os.path.join(ROOT_DIR, 'Tools', 'buildbot', 'test.bat')
|
||||
test_args = ['--testdir=%s' % self.tmptestdir]
|
||||
if platform.architecture()[0] == '64bit':
|
||||
if platform.machine() == 'ARM64':
|
||||
test_args.append('-arm64') # ARM 64-bit build
|
||||
elif platform.architecture()[0] == '64bit':
|
||||
test_args.append('-x64') # 64-bit build
|
||||
if not Py_DEBUG:
|
||||
test_args.append('+d') # Release build, use python.exe
|
||||
|
@ -629,7 +631,9 @@ class ProgramsTestCase(BaseTestCase):
|
|||
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':
|
||||
if platform.machine() == 'ARM64':
|
||||
rt_args.append('-arm64') # ARM 64-bit build
|
||||
elif platform.architecture()[0] == '64bit':
|
||||
rt_args.append('-x64') # 64-bit build
|
||||
if Py_DEBUG:
|
||||
rt_args.append('-d') # Debug build, use python_d.exe
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue