summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_regrtest.py
diff options
context:
space:
mode:
authorPaul Monson <paulmon@users.noreply.github.com>2019-06-07 17:58:41 (GMT)
committerSteve Dower <steve.dower@python.org>2019-06-07 17:58:41 (GMT)
commite7e5039d6940e41839dcef0433262ff363408dad (patch)
tree7d00884ba4b1cf6ae526c1dda93a4d2080544b4d /Lib/test/test_regrtest.py
parent740a84de73ad8d02655de0a084036f4b7e49a01b (diff)
downloadcpython-e7e5039d6940e41839dcef0433262ff363408dad.zip
cpython-e7e5039d6940e41839dcef0433262ff363408dad.tar.gz
cpython-e7e5039d6940e41839dcef0433262ff363408dad.tar.bz2
bpo-37181: Fix test_regrtest failures on Windows arm64 (GH-13872)
Diffstat (limited to 'Lib/test/test_regrtest.py')
-rw-r--r--Lib/test/test_regrtest.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/Lib/test/test_regrtest.py b/Lib/test/test_regrtest.py
index 9155522..b616e89 100644
--- a/Lib/test/test_regrtest.py
+++ b/Lib/test/test_regrtest.py
@@ -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