From: Ajob Kustra Date: Sat, 18 Jul 2026 16:03:54 +0000 (+0200) Subject: Add vfspath TypeError test (#153987) X-Git-Url: http://git.ipfire.org/index.cgi?a=commitdiff_plain;h=5763bfdd1b582ef30cf3e6dd88754991973c77ce;p=thirdparty%2FPython%2Fcpython.git Add vfspath TypeError test (#153987) typeerror with message test --- diff --git a/Lib/test/test_pathlib/test_join_windows.py b/Lib/test/test_pathlib/test_join_windows.py index f30c80605f7f..5afefa61b585 100644 --- a/Lib/test/test_pathlib/test_join_windows.py +++ b/Lib/test/test_pathlib/test_join_windows.py @@ -87,6 +87,11 @@ class JoinTestBase: p = self.cls(r'\\a\b\c\d') self.assertEqual(vfspath(p), '\\\\a\\b\\c\\d') + def test_invalid_vspath(self): + msg = "expected JoinablePath object, not NoneType" + with self.assertRaisesRegex(TypeError, msg): + vfspath(None) + def test_parts(self): P = self.cls p = P(r'c:a\b')