[pypy-commit] cffi default: Fix test for Windows.
arigo
noreply at buildbot.pypy.org
Sat Aug 11 20:37:38 CEST 2012
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r795:0ecde33a2a8f
Date: 2012-08-11 20:36 +0200
http://bitbucket.org/cffi/cffi/changeset/0ecde33a2a8f/
Log: Fix test for Windows.
diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -301,6 +301,9 @@
assert p[0][0] == 43
def test_load_standard_library():
+ if sys.platform == "win32":
+ py.test.raises(OSError, find_and_load_library, None)
+ return
x = find_and_load_library(None)
BVoidP = new_pointer_type(new_void_type())
assert x.load_function(BVoidP, 'strcpy')
More information about the pypy-commit
mailing list