summaryrefslogtreecommitdiff
path: root/testing/cffi1/test_re_python.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-05-18 12:42:11 +0200
committerArmin Rigo <arigo@tunes.org>2015-05-18 12:42:11 +0200
commitc97ee45f5fdcb51cc7cb1eaa3d4d30569203eb55 (patch)
treebd4b6b4acdfa5310462ada5fff91877396a3f3fd /testing/cffi1/test_re_python.py
parentff53e3d1f997b67fa099d0f5f09330edaeb7dd33 (diff)
downloadcffi-c97ee45f5fdcb51cc7cb1eaa3d4d30569203eb55.tar.gz
Add a test
Diffstat (limited to 'testing/cffi1/test_re_python.py')
-rw-r--r--testing/cffi1/test_re_python.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/testing/cffi1/test_re_python.py b/testing/cffi1/test_re_python.py
index c6c4458..0d25c54 100644
--- a/testing/cffi1/test_re_python.py
+++ b/testing/cffi1/test_re_python.py
@@ -76,6 +76,9 @@ def test_dlclose():
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