Author: mattip <[email protected]>
Branch: 
Changeset: r56782:3f7550b9d9f0
Date: 2012-08-22 00:04 +0300
http://bitbucket.org/pypy/pypy/changeset/3f7550b9d9f0/

Log:    first draft of howto write test for _cffi_backend

diff --git a/pypy/module/_cffi_backend/test/test_c.py 
b/pypy/module/_cffi_backend/test/test_c.py
--- a/pypy/module/_cffi_backend/test/test_c.py
+++ b/pypy/module/_cffi_backend/test/test_c.py
@@ -2,6 +2,13 @@
 """
 This file is OBSCURE.  Really.  The purpose is to avoid copying and changing
 'test_c.py' from cffi/c/.
+Adding a test to _cffi_backend involves:
+1. add a test to cffi/_cffi_backend.c from the cffi module
+2. have it pass when you run test_c.py in cffi
+3. copy test_c.py into _backend_test.py here
+4. add the _testfunc from 1 into _test_lib.c here
+5. make the test pass in pypy
+
 """
 import py, sys, ctypes
 if sys.version_info < (2, 6):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to