[Python-checkins] cpython: - #22980: fix typo in Lib/test/test_sysconfig.py triplet test

matthias.klose python-checkins at python.org
Wed Apr 15 20:52:45 CEST 2015


https://hg.python.org/cpython/rev/df6c73f0e375
changeset:   95677:df6c73f0e375
user:        doko at ubuntu.com
date:        Wed Apr 15 20:52:39 2015 +0200
summary:
   - #22980: fix typo in Lib/test/test_sysconfig.py triplet test

files:
  Lib/test/test_sysconfig.py |  2 +-
  1 files changed, 1 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -396,7 +396,7 @@
         suffix = sysconfig.get_config_var('EXT_SUFFIX')
         if re.match('(aarch64|arm|mips|ppc|powerpc|s390|sparc)', machine):
             self.assertTrue('linux' in suffix, suffix)
-        if re.match('(i[3-6]86|x86_64)$', 'x86_64'):
+        if re.match('(i[3-6]86|x86_64)$', machine):
             if ctypes.sizeof(ctypes.c_char_p()) == 4:
                 self.assertTrue(suffix.endswith('i386-linux-gnu.so') \
                                 or suffix.endswith('x86_64-linux-gnux32.so'),

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list