There was an error while loading. Please reload this page.
1 parent 9adef68 commit 5763bfdCopy full SHA for 5763bfd
1 file changed
Lib/test/test_pathlib/test_join_windows.py
@@ -87,6 +87,11 @@ def test_vfspath(self):
87
p = self.cls(r'\\a\b\c\d')
88
self.assertEqual(vfspath(p), '\\\\a\\b\\c\\d')
89
90
+ def test_invalid_vspath(self):
91
+ msg = "expected JoinablePath object, not NoneType"
92
+ with self.assertRaisesRegex(TypeError, msg):
93
+ vfspath(None)
94
+
95
def test_parts(self):
96
P = self.cls
97
p = P(r'c:a\b')
0 commit comments