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 7024189 commit 97abda7Copy full SHA for 97abda7
Lib/test/test_pathlib/test_read.py
@@ -20,13 +20,13 @@ def tearDown(self):
20
def test_is_readable(self):
21
self.assertIsInstance(self.root, ReadablePath)
22
23
- def test_open_w(self):
+ def test_open_r(self):
24
p = self.root / 'fileA'
25
with magic_open(p, 'r') as f:
26
self.assertIsInstance(f, io.TextIOBase)
27
self.assertEqual(f.read(), 'this is file A\n')
28
29
- def test_open_wb(self):
+ def test_open_rb(self):
30
31
with magic_open(p, 'rb') as f:
32
self.assertEqual(f.read(), b'this is file A\n')
0 commit comments