[pypy-commit] pypy unicode-utf8-py3: PyFile_Name was removed from cpython3

mattip pypy.commits at gmail.com
Tue Oct 16 07:31:48 EDT 2018


Author: Matti Picus <matti.picus at gmail.com>
Branch: unicode-utf8-py3
Changeset: r95219:db6acee88a0e
Date: 2018-10-16 14:31 +0300
http://bitbucket.org/pypy/pypy/changeset/db6acee88a0e/

Log:	PyFile_Name was removed from cpython3

diff --git a/pypy/module/cpyext/test/test_pyfile.py b/pypy/module/cpyext/test/test_pyfile.py
--- a/pypy/module/cpyext/test/test_pyfile.py
+++ b/pypy/module/cpyext/test/test_pyfile.py
@@ -48,13 +48,6 @@
 
         space.call_method(w_file, "close")
 
-    def test_file_name(self, space, api):
-        name = str(udir / "_test_file")
-        with rffi.scoped_str2charp(name) as filename:
-            with rffi.scoped_str2charp("wb") as mode:
-                w_file = api.PyFile_FromString(filename, mode)
-        assert space.text_w(api.PyFile_Name(w_file)) == name
-
     @pytest.mark.xfail
     def test_file_setbufsize(self, space, api):
         api.PyFile_SetBufSize()


More information about the pypy-commit mailing list