Skip to content

Commit 5763bfd

Browse files
authored
Add vfspath TypeError test (#153987)
typeerror with message test
1 parent 9adef68 commit 5763bfd

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/test_pathlib/test_join_windows.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,11 @@ def test_vfspath(self):
8787
p = self.cls(r'\\a\b\c\d')
8888
self.assertEqual(vfspath(p), '\\\\a\\b\\c\\d')
8989

90+
def test_invalid_vspath(self):
91+
msg = "expected JoinablePath object, not NoneType"
92+
with self.assertRaisesRegex(TypeError, msg):
93+
vfspath(None)
94+
9095
def test_parts(self):
9196
P = self.cls
9297
p = P(r'c:a\b')

0 commit comments

Comments
 (0)