Author: Alexander Hesse <[email protected]>
Branch: split-rpython
Changeset: r59880:ea633cd73b5b
Date: 2013-01-08 23:43 +0100
http://bitbucket.org/pypy/pypy/changeset/ea633cd73b5b/

Log:    Removed unneeded ctype existence check. Removed resulting dead code.

diff --git a/pypy/tool/pytest/modcheck.py b/pypy/tool/pytest/modcheck.py
deleted file mode 100644
--- a/pypy/tool/pytest/modcheck.py
+++ /dev/null
@@ -1,14 +0,0 @@
-import py
-
-def skipimporterror(name):
-    if not hasimport(name):
-        __tracebackhide__ = True
-        py.test.skip("cannot import %r module" % (name,))
-
-def hasimport(name):
-    try:
-        __import__(name)
-    except ImportError:
-        return False
-    else:
-        return True
diff --git a/rpython/rtyper/module/test/test_ll_os_path.py 
b/rpython/rtyper/module/test/test_ll_os_path.py
--- a/rpython/rtyper/module/test/test_ll_os_path.py
+++ b/rpython/rtyper/module/test/test_ll_os_path.py
@@ -2,9 +2,6 @@
 
 import sys, os
 
-from pypy.tool.pytest.modcheck import skipimporterror
-skipimporterror("ctypes")
-
 from rpython.rtyper.lltypesystem.module.ll_os_path import Implementation as 
impl
 from rpython.rtyper.module.support import ll_strcpy
 from rpython.rtyper.test.test_llinterp import interpret
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to