]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #27917: Fix test_triplet_in_ext_suffix for the 'x86' Android platform.
authorXavier de Gaye <xdegaye@users.sourceforge.net>
Sun, 11 Sep 2016 19:39:17 +0000 (21:39 +0200)
committerXavier de Gaye <xdegaye@users.sourceforge.net>
Sun, 11 Sep 2016 19:39:17 +0000 (21:39 +0200)
Lib/test/test_sysconfig.py

index a23bf06af8fc88b916abb63a986c6001fe69f903..091e90522de412f122d89fc0852b34de8808e19e 100644 (file)
@@ -394,8 +394,9 @@ class TestSysConfig(unittest.TestCase):
             self.assertTrue('linux' in suffix, suffix)
         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'),
+                self.assertTrue(suffix.endswith('i386-linux-gnu.so') or
+                                suffix.endswith('i686-linux-android.so') or
+                                suffix.endswith('x86_64-linux-gnux32.so'),
                                 suffix)
             else: # 8 byte pointer size
                 self.assertTrue(suffix.endswith('x86_64-linux-gnu.so'), suffix)