Author: Philip Jenvey <[email protected]>
Branch:
Changeset: r65529:07b497ef4cb7
Date: 2013-07-22 18:16 -0700
http://bitbucket.org/pypy/pypy/changeset/07b497ef4cb7/
Log: avoid the explicit resource import for the sake of the py3k branch
(which SyntaxErrors)
diff --git a/pypy/module/test_lib_pypy/test_ctypes_config_cache.py
b/pypy/module/test_lib_pypy/test_ctypes_config_cache.py
--- a/pypy/module/test_lib_pypy/test_ctypes_config_cache.py
+++ b/pypy/module/test_lib_pypy/test_ctypes_config_cache.py
@@ -33,10 +33,8 @@
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
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit