[pypy-svn] pypy default: Skip this test on posix platforms

amauryfa commits-noreply at bitbucket.org
Thu Jan 20 20:00:25 CET 2011


Author: Amaury Forgeot d'Arc <amauryfa at gmail.com>
Branch: 
Changeset: r41088:bb34b45aa091
Date: 2011-01-20 19:57 +0100
http://bitbucket.org/pypy/pypy/changeset/bb34b45aa091/

Log:	Skip this test on posix platforms

diff --git a/pypy/module/cpyext/test/test_cpyext.py b/pypy/module/cpyext/test/test_cpyext.py
--- a/pypy/module/cpyext/test/test_cpyext.py
+++ b/pypy/module/cpyext/test/test_cpyext.py
@@ -46,8 +46,8 @@
 
     def test_dllhandle(self):
         import sys
-        if sys.version_info < (2, 6):
-            skip("Python >= 2.6 only")
+        if sys.platform != "win32" or sys.version_info < (2, 6):
+            skip("Windows Python >= 2.6 only")
         assert sys.dllhandle
         assert sys.dllhandle.getaddressindll('PyPyErr_NewException')
         import ctypes # slow


More information about the Pypy-commit mailing list