Author: Armin Rigo <ar...@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()) _______________________________________________ pypy-commit mailing list pypy-commit@python.org https://mail.python.org/mailman/listinfo/pypy-commit