Browse Source

- #22980: fix typo in Lib/test/test_sysconfig.py triplet test

pull/9921/head
doko@ubuntu.com 11 years ago
parent
commit
807b80d4ec
  1. 2
      Lib/test/test_sysconfig.py

2
Lib/test/test_sysconfig.py

@ -396,7 +396,7 @@ class TestSysConfig(unittest.TestCase):
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'),

Loading…
Cancel
Save