[pypy-commit] pypy default: Skip test_get_config_h_filename() when cpyext is not available.
Manuel Jacob
noreply at buildbot.pypy.org
Sun May 19 16:06:54 CEST 2013
Author: Manuel Jacob
Branch:
Changeset: r64325:0a007a299a9b
Date: 2013-05-19 15:38 +0200
http://bitbucket.org/pypy/pypy/changeset/0a007a299a9b/
Log: Skip test_get_config_h_filename() when cpyext is not available.
diff --git a/lib-python/2.7/test/test_sysconfig.py b/lib-python/2.7/test/test_sysconfig.py
--- a/lib-python/2.7/test/test_sysconfig.py
+++ b/lib-python/2.7/test/test_sysconfig.py
@@ -7,7 +7,8 @@
import subprocess
from copy import copy, deepcopy
-from test.test_support import run_unittest, TESTFN, unlink, get_attribute
+from test.test_support import (run_unittest, TESTFN, unlink, get_attribute,
+ check_impl_detail)
import sysconfig
from sysconfig import (get_paths, get_platform, get_config_vars,
@@ -235,6 +236,11 @@
# XXX more platforms to tests here
def test_get_config_h_filename(self):
+ if check_impl_detail(pypy=True):
+ try:
+ import cpyext
+ except ImportError:
+ self.skipTest("This test depends on cpyext.")
config_h = sysconfig.get_config_h_filename()
self.assertTrue(os.path.isfile(config_h), config_h)
More information about the pypy-commit
mailing list