We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c91aa82 commit 0fc6dc1Copy full SHA for 0fc6dc1
Lib/test/test_capi/test_file.py
@@ -9,11 +9,6 @@
9
class CAPIFileTest(unittest.TestCase):
10
def test_py_fopen(self):
11
# Test Py_fopen() and Py_fclose()
12
- class FSPath:
13
- def __init__(self, path):
14
- self.path = path
15
- def __fspath__(self):
16
- return self.path
17
18
with open(__file__, "rb") as fp:
19
source = fp.read()
@@ -23,7 +18,7 @@ def __fspath__(self):
23
data = _testcapi.py_fopen(filename, "rb")
24
self.assertEqual(data, source[:256])
25
20
26
- data = _testcapi.py_fopen(FSPath(filename), "rb")
21
+ data = _testcapi.py_fopen(os_helper.FakePath(filename), "rb")
27
22
28
29
filenames = [
0 commit comments