mirror of
https://github.com/python/cpython.git
synced 2025-07-24 03:35:53 +00:00
Issue #28849: Do not define sys.implementation._multiarch on Android.
This commit is contained in:
parent
ebb39bcc04
commit
32cf1acda8
4 changed files with 9 additions and 48 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue