summaryrefslogtreecommitdiff
path: root/testing/cffi1/test_re_python.py
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2015-05-17 22:52:17 +0200
committerArmin Rigo <arigo@tunes.org>2015-05-17 22:52:17 +0200
commit2a0afc6b10eef16d9857d4219c0370ced1c6d42c (patch)
tree58abf4178e3f64f290ae9680d6bc50c2347913ca /testing/cffi1/test_re_python.py
parent80e22be540751bf5324d0f517f4bd390ab7685f0 (diff)
downloadcffi-2a0afc6b10eef16d9857d4219c0370ced1c6d42c.tar.gz
Generalize: in pypy it turns out we can naturally give a more precise message
Diffstat (limited to 'testing/cffi1/test_re_python.py')
-rw-r--r--testing/cffi1/test_re_python.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/testing/cffi1/test_re_python.py b/testing/cffi1/test_re_python.py
index 889bd5f..c6c4458 100644
--- a/testing/cffi1/test_re_python.py
+++ b/testing/cffi1/test_re_python.py
@@ -74,9 +74,8 @@ def test_dlclose():
lib = ffi.dlopen(extmod)
ffi.dlclose(lib)
e = py.test.raises(ffi.error, ffi.dlclose, lib)
- assert str(e.value) == (
- "library '%s' is already closed or was not created with ffi.dlopen()"
- % (extmod,))
+ assert str(e.value).startswith(
+ "library '%s' is already closed" % (extmod,))
def test_constant_via_lib():
from re_python_pysrc import ffi