summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2016-07-23 05:42:41 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2016-07-23 05:42:41 (GMT)
commit5f804e387ebc70effb61dc124f52acef357471b3 (patch)
tree5e08e47517e70b0444d9ce9c06f8991c69c50a12 /Lib
parent9adc1a38bda536e6f02fb5b3b1bbd231160a50de (diff)
downloadcpython-5f804e387ebc70effb61dc124f52acef357471b3.zip
cpython-5f804e387ebc70effb61dc124f52acef357471b3.tar.gz
cpython-5f804e387ebc70effb61dc124f52acef357471b3.tar.bz2
Issue #13849: Fix test_null_bytes under Windows
Diffstat (limited to 'Lib')
-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 d7644e8..b77d1d7 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).