[pypy-commit] pypy py3.5: fix test

arigo pypy.commits at gmail.com
Mon Feb 6 13:33:12 EST 2017


Author: Armin Rigo <arigo at tunes.org>
Branch: py3.5
Changeset: r89977:06a83da024e0
Date: 2017-02-06 13:11 +0100
http://bitbucket.org/pypy/pypy/changeset/06a83da024e0/

Log:	fix test

diff --git a/lib-python/3/test/test_genericpath.py b/lib-python/3/test/test_genericpath.py
--- a/lib-python/3/test/test_genericpath.py
+++ b/lib-python/3/test/test_genericpath.py
@@ -282,7 +282,9 @@
             with self.subTest(attr=attr):
                 with self.assertRaises(ValueError) as cm:
                     getattr(self.pathmodule, attr)('/tmp\x00abcds')
-                self.assertIn('embedded null', str(cm.exception))
+                s = str(cm.exception)
+                if s != 'argument must be a string without NUL characters':
+                    self.assertIn('embedded null', s)
 
 # Following TestCase is not supposed to be run from test_genericpath.
 # It is inherited by other test modules (macpath, ntpath, posixpath).


More information about the pypy-commit mailing list