[pypy-svn] r61415 - pypy/trunk/pypy/lib
afa at codespeak.net
afa at codespeak.net
Wed Jan 28 09:55:33 CET 2009
Author: afa
Date: Wed Jan 28 09:55:31 2009
New Revision: 61415
Modified:
pypy/trunk/pypy/lib/grp.py
Log:
Raise ImportError when trying to import the grp module on Windows.
This should fix test___all__.
Modified: pypy/trunk/pypy/lib/grp.py
==============================================================================
--- pypy/trunk/pypy/lib/grp.py (original)
+++ pypy/trunk/pypy/lib/grp.py Wed Jan 28 09:55:31 2009
@@ -2,6 +2,10 @@
""" This module provides ctypes version of cpython's grp module
"""
+import sys
+if sys.platform == 'win32':
+ raise ImportError("No grp module on Windows")
+
from ctypes import Structure, c_char_p, c_int, POINTER
from ctypes_support import standard_c_lib as libc
More information about the Pypy-commit
mailing list