Commits

Alexander Hesse  committed ea633cd

Removed unneeded ctype existence check. Removed resulting dead code.

  • Participants
  • Parent commits 668748e
  • Branches split-rpython

Comments (0)

Files changed (2)

File pypy/tool/pytest/modcheck.py

-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

File rpython/rtyper/module/test/test_ll_os_path.py

 
 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