[pypy-commit] pypy cffi-1.0: Import the test_c.py file (it wasn't really changed)
arigo
noreply at buildbot.pypy.org
Thu May 7 16:02:22 CEST 2015
Author: Armin Rigo <arigo at tunes.org>
Branch: cffi-1.0
Changeset: r77176:8db880f728bc
Date: 2015-05-07 15:01 +0200
http://bitbucket.org/pypy/pypy/changeset/8db880f728bc/
Log: Import the test_c.py file (it wasn't really changed)
diff --git a/pypy/module/_cffi_backend/test/_backend_test_c.py b/pypy/module/_cffi_backend/test/_backend_test_c.py
--- a/pypy/module/_cffi_backend/test/_backend_test_c.py
+++ b/pypy/module/_cffi_backend/test/_backend_test_c.py
@@ -3331,4 +3331,4 @@
def test_version():
# this test is here mostly for PyPy
- assert __version__ == "0.9.2"
+ assert __version__ == "1.0.0"
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
@@ -22,6 +22,7 @@
from rpython.tool.udir import udir
from pypy.interpreter import gateway
from pypy.module._cffi_backend import Module
+from pypy.module._cffi_backend.newtype import _clean_cache
from rpython.translator import cdir
from rpython.translator.platform import host
from rpython.translator.tool.cbuild import ExternalCompilationInfo
@@ -86,6 +87,9 @@
_all_test_c._testfunc = testfunc
""")
+ def teardown_method(self, method):
+ _clean_cache(self.space)
+
all_names = ', '.join(Module.interpleveldefs.keys())
More information about the pypy-commit
mailing list