1. Pypy
  2. Untitled project
  3. pypy

Commits

Matti Picus  committed 740f02b

skip resource tests when module not available

  • Participants
  • Parent commits f0d7998
  • Branches default

Comments (0)

Files changed (1)

File pypy/module/test_lib_pypy/test_resource.py

View file
  • Ignore whitespace
 from __future__ import absolute_import
+import py
+try:
+    from lib_pypy import resource
+except ImportError:
+    py.test.skip('no resource module available')
+
 from lib_pypy.ctypes_config_cache import rebuild
 rebuild.rebuild_one('resource.ctc.py')
 
-from lib_pypy import resource
 
 def test_resource():
     x = resource.getrusage(resource.RUSAGE_SELF)