Author: Armin Rigo <[email protected]>
Branch:
Changeset: r59073:2506985c1c36
Date: 2012-11-23 14:08 +0100
http://bitbucket.org/pypy/pypy/changeset/2506985c1c36/
Log: Document how to update _backend_test.py.
diff --git a/pypy/module/_cffi_backend/test/test_file.py
b/pypy/module/_cffi_backend/test/test_file.py
--- a/pypy/module/_cffi_backend/test/test_file.py
+++ b/pypy/module/_cffi_backend/test/test_file.py
@@ -10,4 +10,8 @@
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")
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit