summaryrefslogtreecommitdiff
path: root/Lib/test/test_genericpath.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-07-23 08:43:04 +0300
committerBerker Peksag <berker.peksag@gmail.com>2016-07-23 08:43:04 +0300
commitf96c84f6e5cd4a141a0b20165834b4430df49d18 (patch)
tree987560d75e5081fe96dff01616367239e9e3d7c7 /Lib/test/test_genericpath.py
parent804a39f04fa7b55d5cd23f720252bbb603444d62 (diff)
parent5f804e387ebc70effb61dc124f52acef357471b3 (diff)
downloadcpython-git-f96c84f6e5cd4a141a0b20165834b4430df49d18.tar.gz
Issue #13849: Merge from 3.5
Diffstat (limited to 'Lib/test/test_genericpath.py')
-rw-r--r--Lib/test/test_genericpath.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_genericpath.py b/Lib/test/test_genericpath.py
index b52d4608bc..5331b241ef 100644
--- a/Lib/test/test_genericpath.py
+++ b/Lib/test/test_genericpath.py
@@ -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).