Author: Matti Picus <[email protected]>
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()
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to