[pypy-commit] pypy default: fix cffi to remove tmp files, should be ported to upstream

mattip noreply at buildbot.pypy.org
Sun Sep 21 00:00:41 CEST 2014


Author: mattip <matti.picus at gmail.com>
Branch: 
Changeset: r73620:cdf3042470fb
Date: 2014-09-21 01:00 +0300
http://bitbucket.org/pypy/pypy/changeset/cdf3042470fb/

Log:	fix cffi to remove tmp files, should be ported to upstream

diff --git a/pypy/module/test_lib_pypy/cffi_tests/test_zdistutils.py b/pypy/module/test_lib_pypy/cffi_tests/test_zdistutils.py
--- a/pypy/module/test_lib_pypy/cffi_tests/test_zdistutils.py
+++ b/pypy/module/test_lib_pypy/cffi_tests/test_zdistutils.py
@@ -16,6 +16,10 @@
             if distutils.ccompiler.get_default_compiler() == 'msvc':
                 self.lib_m = 'msvcrt'
 
+    def teardown_class(self):
+        if udir.isdir():
+            udir.remove()
+
     def test_locate_engine_class(self):
         cls = _locate_engine_class(FFI(), self.generic)
         if self.generic:


More information about the pypy-commit mailing list