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 9adef68 commit 4b1d71cCopy full SHA for 4b1d71c
1 file changed
Lib/test/test_pathlib/test_read.py
@@ -329,7 +329,14 @@ def test_info_is_symlink(self):
329
self.assertFalse((p / 'fileA\udfff').info.is_symlink())
330
self.assertFalse((p / 'fileA\x00').info.is_symlink())
331
332
+ def test_invalid_mode(self):
333
+ p = self.root / 'fileA'
334
+
335
+ with self.assertRaisesRegex(ValueError, "invalid mode"):
336
+ vfsopen(p, "q")
337
338
339
340
class ZipPathReadTest(ReadTestBase, unittest.TestCase):
341
ground = ZipPathGround(ReadableZipPath)
342
0 commit comments