Author: Armin Rigo <[email protected]>
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
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to