summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sysconfig.py
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-12-10 16:31:28 (GMT)
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-12-10 16:31:28 (GMT)
commit32cf1acda85dd14c0865a7ce68dbc96980d6714a (patch)
tree0bff8e1c73e6953200deb76d997d2d5357e1e05d /Lib/test/test_sysconfig.py
parentebb39bcc048b33d529a64f517ccee1c172ff8b07 (diff)
downloadcpython-32cf1acda85dd14c0865a7ce68dbc96980d6714a.zip
cpython-32cf1acda85dd14c0865a7ce68dbc96980d6714a.tar.gz
cpython-32cf1acda85dd14c0865a7ce68dbc96980d6714a.tar.bz2
Issue #28849: Do not define sys.implementation._multiarch on Android.
Diffstat (limited to 'Lib/test/test_sysconfig.py')
-rw-r--r--Lib/test/test_sysconfig.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_sysconfig.py b/Lib/test/test_sysconfig.py
index 091e905..747b2e5 100644
--- a/Lib/test/test_sysconfig.py
+++ b/Lib/test/test_sysconfig.py
@@ -385,7 +385,8 @@ class TestSysConfig(unittest.TestCase):
self.assertIsNotNone(vars['SO'])
self.assertEqual(vars['SO'], vars['EXT_SUFFIX'])
- @unittest.skipUnless(sys.platform == 'linux', 'Linux-specific test')
+ @unittest.skipUnless(hasattr(sys.implementation, '_multiarch'),
+ 'multiarch-specific test')
def test_triplet_in_ext_suffix(self):
import ctypes, platform, re
machine = platform.machine()
@@ -395,7 +396,6 @@ class TestSysConfig(unittest.TestCase):
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('i686-linux-android.so') or
suffix.endswith('x86_64-linux-gnux32.so'),
suffix)
else: # 8 byte pointer size