Commits

Armin Rigo committed 2506985

Document how to update _backend_test.py.

Comments (0)

Files changed (1)

pypy/module/_cffi_backend/test/test_file.py

     dest = py.path.local(__file__).join('..', '_backend_test_c.py').read()
     #
     source = source[source.index('# _____________'):]
-    assert source == dest
+    if source.strip() != dest.strip():
+        raise AssertionError(
+            "Update test/_backend_test_c.py by copying it from "
+            "https://bitbucket.org/cffi/cffi/raw/default/c/test_c.py "
+            "and killing the import lines at the start")