Issue #13849: Merge from 3.5
This commit is contained in:
commit
f96c84f6e5
|
@ -280,7 +280,7 @@ class TestGenericTest(GenericTest, unittest.TestCase):
|
|||
with self.subTest(attr=attr):
|
||||
with self.assertRaises(ValueError) as cm:
|
||||
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.
|
||||
# It is inherited by other test modules (macpath, ntpath, posixpath).
|
||||
|
|
Loading…
Reference in New Issue