mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
Fixed tests on Windows for issue #21883.
This commit is contained in:
parent
d32abc12e8
commit
e4f47088af
3 changed files with 4 additions and 3 deletions
|
@ -453,7 +453,8 @@ class CommonTest(GenericTest):
|
|||
|
||||
def test_relpath_errors(self):
|
||||
# Check relpath() raises friendly TypeErrors.
|
||||
with support.check_warnings(('', BytesWarning), quiet=True):
|
||||
with support.check_warnings(('', (BytesWarning, DeprecationWarning)),
|
||||
quiet=True):
|
||||
errmsg = "Can't mix strings and bytes in path components"
|
||||
with self.assertRaisesRegex(TypeError, errmsg):
|
||||
self.pathmodule.relpath(b'bytes', 'str')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue