Commit 5f804e38 authored by Berker Peksag's avatar Berker Peksag

Issue #13849: Fix test_null_bytes under Windows

parent 9adc1a38
......@@ -282,7 +282,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).
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment