Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r64352:bb0df4cbd219
Date: 2013-05-19 13:19 -0700
http://bitbucket.org/pypy/pypy/changeset/bb0df4cbd219/

Log:    reapply 2b05ce699b09 from default

diff --git a/lib-python/3/test/test_sysconfig.py 
b/lib-python/3/test/test_sysconfig.py
--- a/lib-python/3/test/test_sysconfig.py
+++ b/lib-python/3/test/test_sysconfig.py
@@ -13,7 +13,7 @@
 
 from test.support import (run_unittest, TESTFN, unlink, get_attribute,
                           captured_stdout, skip_unless_symlink,
-                          impl_detail)
+                          impl_detail, import_module)
 
 import sysconfig
 from sysconfig import (get_paths, get_platform, get_config_vars,
@@ -232,7 +232,10 @@
 
     def test_get_config_h_filename(self):
         config_h = sysconfig.get_config_h_filename()
-        self.assertTrue(os.path.isfile(config_h), config_h)
+        # import_module skips the test when the CPython C Extension API
+        # appears to not be supported
+        self.assertTrue(os.path.isfile(config_h) or
+                        not import_module('_testcapi'), config_h)
 
     def test_get_scheme_names(self):
         wanted = ('nt', 'nt_user', 'os2', 'os2_home', 'osx_framework_user',
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to