Author: Ronan Lamy <ronan.l...@gmail.com>
Branch: 
Changeset: r93552:2af71eb93682
Date: 2017-12-22 16:13 +0100
http://bitbucket.org/pypy/pypy/changeset/2af71eb93682/

Log:    Avoid dependency on rpython

diff --git a/pypy/module/test_lib_pypy/ctypes_tests/test_functions.py 
b/pypy/module/test_lib_pypy/ctypes_tests/test_functions.py
--- a/pypy/module/test_lib_pypy/ctypes_tests/test_functions.py
+++ b/pypy/module/test_lib_pypy/ctypes_tests/test_functions.py
@@ -605,7 +605,7 @@
         get_data.errcheck = ret_list_p(1)
         assert get_data('testing!') == [-1, -2, -3, -4]
 
-    def test_issue2533(self):
+    def test_issue2533(self, tmpdir):
         import cffi
         ffi = cffi.FFI()
         ffi.cdef("int **fetchme(void);")
@@ -617,11 +617,10 @@
                 return &pa;
             }
         """)
-        from rpython.tool.udir import udir
-        ffi.compile(verbose=True, tmpdir=str(udir))
+        ffi.compile(verbose=True, tmpdir=str(tmpdir))
 
         import sys
-        sys.path.insert(0, str(udir))
+        sys.path.insert(0, str(tmpdir))
         try:
             from _x_cffi import ffi, lib
         finally:
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to