gh-117636: Remove redundant type check in os.path.join() (#117638)

This commit is contained in:
Nice Zombies 2024-04-14 23:04:14 +02:00 committed by GitHub
parent e01831760e
commit 9ee94d1391
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 5 additions and 6 deletions

View file

@ -56,6 +56,8 @@ class PosixPathTest(unittest.TestCase):
self.assertEqual(fn(b"/foo", b"bar", b"baz"), b"/foo/bar/baz")
self.assertEqual(fn(b"/foo/", b"bar/", b"baz/"), b"/foo/bar/baz/")
self.assertEqual(fn("a", ""), "a/")
self.assertEqual(fn("a", "", ""), "a/")
self.assertEqual(fn("a", "b"), "a/b")
self.assertEqual(fn("a", "b/"), "a/b/")
self.assertEqual(fn("a/", "b"), "a/b")