]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #13849: Fix test_null_bytes under Windows
authorBerker Peksag <berker.peksag@gmail.com>
Sat, 23 Jul 2016 05:42:41 +0000 (08:42 +0300)
committerBerker Peksag <berker.peksag@gmail.com>
Sat, 23 Jul 2016 05:42:41 +0000 (08:42 +0300)
Lib/test/test_genericpath.py

index d7644e8ef4564a5de9b602c7bf0f52f519e93a97..b77d1d79a1e88f6c73d38cc4909eb792e815d027 100644 (file)
@@ -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).