Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r1064:409556327fb6
Date: 2012-11-25 00:05 +0100
http://bitbucket.org/cffi/cffi/changeset/409556327fb6/

Log:    Win32 fix in the test

diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -2394,8 +2394,11 @@
 
 # XXX hack
 if sys.version_info >= (3,):
-    import posix, io
-    posix.fdopen = io.open
+    try:
+        import posix, io
+        posix.fdopen = io.open
+    except ImportError:
+        pass   # win32
 
 def test_FILE():
     if sys.platform == "win32":
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to