mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
Issue #13849: Fix test_null_bytes under Windows
This commit is contained in:
parent
9adc1a38bd
commit
5f804e387e
1 changed files with 1 additions and 1 deletions
|
@ -282,7 +282,7 @@ class TestGenericTest(GenericTest, unittest.TestCase):
|
||||||
with self.subTest(attr=attr):
|
with self.subTest(attr=attr):
|
||||||
with self.assertRaises(ValueError) as cm:
|
with self.assertRaises(ValueError) as cm:
|
||||||
getattr(self.pathmodule, attr)('/tmp\x00abcds')
|
getattr(self.pathmodule, attr)('/tmp\x00abcds')
|
||||||
self.assertEqual(str(cm.exception), 'embedded null byte')
|
self.assertIn('embedded null', str(cm.exception))
|
||||||
|
|
||||||
# Following TestCase is not supposed to be run from test_genericpath.
|
# Following TestCase is not supposed to be run from test_genericpath.
|
||||||
# It is inherited by other test modules (macpath, ntpath, posixpath).
|
# It is inherited by other test modules (macpath, ntpath, posixpath).
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue