From: Berker Peksag Date: Sat, 23 Jul 2016 05:42:41 +0000 (+0300) Subject: Issue #13849: Fix test_null_bytes under Windows X-Git-Tag: v3.6.0a4~132^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=5f804e387ebc70effb61dc124f52acef357471b3;p=thirdparty%2FPython%2Fcpython.git Issue #13849: Fix test_null_bytes under Windows --- diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py index d7644e8ef456..b77d1d79a1e8 100644 --- a/Lib/test/test_genericpath.py +++ b/Lib/test/test_genericpath.py @@ -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).