[pypy-commit] pypy default: first draft of howto write test for _cffi_backend
mattip
noreply at buildbot.pypy.org
Tue Aug 21 23:05:32 CEST 2012
Author: mattip <matti.picus at gmail.com>
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):
More information about the pypy-commit
mailing list