Author: Armin Rigo <[email protected]>
Branch: cffi-1.0
Changeset: r2043:c8cd3c14b3e8
Date: 2015-05-18 12:42 +0200
http://bitbucket.org/cffi/cffi/changeset/c8cd3c14b3e8/
Log: Add a test
diff --git a/testing/cffi1/test_re_python.py b/testing/cffi1/test_re_python.py
--- a/testing/cffi1/test_re_python.py
+++ b/testing/cffi1/test_re_python.py
@@ -76,6 +76,9 @@
e = py.test.raises(ffi.error, ffi.dlclose, lib)
assert str(e.value).startswith(
"library '%s' is already closed" % (extmod,))
+ e = py.test.raises(ffi.error, getattr, lib, 'add42')
+ assert str(e.value) == (
+ "library '%s' has been closed" % (extmod,))
def test_constant_via_lib():
from re_python_pysrc import ffi
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit