Author: Armin Rigo <[email protected]>
Branch: 
Changeset: r2258:06cb88161224
Date: 2015-08-27 18:25 +0200
http://bitbucket.org/cffi/cffi/changeset/06cb88161224/

Log:    Move this potential failure earlier

diff --git a/c/test_c.py b/c/test_c.py
--- a/c/test_c.py
+++ b/c/test_c.py
@@ -12,6 +12,9 @@
 # ____________________________________________________________
 
 import sys
+assert __version__ == "1.2.1", ("This test_c.py file is for testing a version"
+                                " of cffi that differs from the one that we"
+                                " get from 'import _cffi_backend'")
 if sys.version_info < (3,):
     type_or_class = "type"
     mandatory_b_prefix = ''
@@ -3435,7 +3438,3 @@
                             "be 'foo *', but the types are different (check "
                             "that you are not e.g. mixing up different ffi "
                             "instances)")
-
-def test_version():
-    # this test is here mostly for PyPy
-    assert __version__ == "1.2.1"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to