[pypy-commit] cffi cffi-1.0: Generalize: in pypy it turns out we can naturally give a more precise message

arigo noreply at buildbot.pypy.org
Sun May 17 22:51:35 CEST 2015


Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r2040:467d2456df58
Date: 2015-05-17 22:52 +0200
http://bitbucket.org/cffi/cffi/changeset/467d2456df58/

Log:	Generalize: in pypy it turns out we can naturally give a more
	precise message

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
@@ -74,9 +74,8 @@
     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


More information about the pypy-commit mailing list