Author: Philip Jenvey <[email protected]>
Branch: stdlib-2.7.11
Changeset: r83235:54b078e95307
Date: 2016-03-21 18:15 -0700
http://bitbucket.org/pypy/pypy/changeset/54b078e95307/

Log:    skip a cpython impl detail

diff --git a/lib-python/2.7/test/test_base64.py 
b/lib-python/2.7/test/test_base64.py
--- a/lib-python/2.7/test/test_base64.py
+++ b/lib-python/2.7/test/test_base64.py
@@ -79,8 +79,10 @@
         eq(base64.b64encode('\xd3V\xbeo\xf7\x1d', altchars='*$'), '01a*b$cd')
         # Non-bytes
         eq(base64.b64encode(bytearray('abcd')), 'YWJjZA==')
-        self.assertRaises(TypeError, base64.b64encode,
-                          '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$'))
+        if test_support.check_impl_detail():
+            # only raises in CPython's optional strop.maketrans
+            self.assertRaises(TypeError, base64.b64encode,
+                              '\xd3V\xbeo\xf7\x1d', altchars=bytearray('*$'))
         # Test standard alphabet
         eq(base64.standard_b64encode("www.python.org"), "d3d3LnB5dGhvbi5vcmc=")
         eq(base64.standard_b64encode("a"), "YQ==")
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to