]> granicus.if.org Git - python/commitdiff
Merge tests from 3.5
authorMartin Panter <vadmium+py@gmail.com>
Sat, 14 Jan 2017 06:26:51 +0000 (06:26 +0000)
committerMartin Panter <vadmium+py@gmail.com>
Sat, 14 Jan 2017 06:26:51 +0000 (06:26 +0000)
1  2 
Lib/test/test_sysconfig.py
Lib/test/test_unicode.py

index 355bc614da35ac4325560996f1f1001b13315996,38306790e42f5b8adaad89e332c277fccc4bff0e..a29ca96d1fc4b2211b8335d796ebeef0bd53d0f3
@@@ -385,11 -386,10 +386,12 @@@ 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(sys.platform == 'linux' and
 +                         hasattr(sys.implementation, '_multiarch'),
 +                         'multiarch-specific test')
      def test_triplet_in_ext_suffix(self):
-         import ctypes, platform, re
+         ctypes = import_module('ctypes')
+         import platform, re
          machine = platform.machine()
          suffix = sysconfig.get_config_var('EXT_SUFFIX')
          if re.match('(aarch64|arm|mips|ppc|powerpc|s390|sparc)', machine):
Simple merge