Commits

Philip Jenvey committed 07b497e

avoid the explicit resource import for the sake of the py3k branch (which SyntaxErrors)

  • Participants
  • Parent commits 8ebd8a6

Comments (0)

Files changed (1)

File pypy/module/test_lib_pypy/test_ctypes_config_cache.py

 
 
 def test_resource():
-    try:
-        import lib_pypy.resource
-    except ImportError:
-        py.test.skip('no syslog on this platform')
+    if sys.platform == 'win32':
+        py.test.skip('no resource module on this platform')
     d = run('resource.ctc.py', '_resource_cache.py')
     assert 'RLIM_NLIMITS' in d