Author: Armin Rigo <[email protected]>
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).
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to