https://github.com/python/cpython/commit/becc0f6180d689d655fd29b9b21a6ef4c59a0323 commit: becc0f6180d689d655fd29b9b21a6ef4c59a0323 branch: 3.15 author: Miss Islington (bot) <[email protected]> committer: tomasr8 <[email protected]> date: 2026-07-19T08:16:03Z summary:
[3.15] Add vfspath TypeError test (GH-153987) (#154010) Add vfspath TypeError test (GH-153987) typeerror with message test (cherry picked from commit 5763bfdd1b582ef30cf3e6dd88754991973c77ce) Co-authored-by: Ajob Kustra <[email protected]> Co-authored-by: Tomas R. <[email protected]> files: M Lib/test/test_pathlib/test_join_windows.py diff --git a/Lib/test/test_pathlib/test_join_windows.py b/Lib/test/test_pathlib/test_join_windows.py index f30c80605f7f910..5afefa61b585f3b 100644 --- a/Lib/test/test_pathlib/test_join_windows.py +++ b/Lib/test/test_pathlib/test_join_windows.py @@ -87,6 +87,11 @@ def test_vfspath(self): 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') _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3//lists/python-checkins.python.org Member address: [email protected]
