Author: Matti Picus <[email protected]>
Branch: unicode-utf8
Changeset: r95564:b717b2705342
Date: 2019-01-01 22:19 +0200
http://bitbucket.org/pypy/pypy/changeset/b717b2705342/

Log:    fix, skip tests

diff --git a/pypy/objspace/std/test/test_bytesobject.py 
b/pypy/objspace/std/test/test_bytesobject.py
--- a/pypy/objspace/std/test/test_bytesobject.py
+++ b/pypy/objspace/std/test/test_bytesobject.py
@@ -1,3 +1,5 @@
+import pytest
+
 from pypy.interpreter.error import OperationError
 
 
@@ -630,6 +632,7 @@
     def test_unicode_join_str_arg_ascii(self):
         raises(UnicodeDecodeError, u''.join, ['\xc3\xa1'])
 
+    @pytest.mark.xfail(reason='setdefaultencoding does not work?')
     def test_unicode_join_str_arg_utf8(self):
         # Need default encoding utf-8, but sys.setdefaultencoding
         # is removed after startup.
diff --git a/pypy/objspace/std/test/test_unicodeobject.py 
b/pypy/objspace/std/test/test_unicodeobject.py
--- a/pypy/objspace/std/test/test_unicodeobject.py
+++ b/pypy/objspace/std/test/test_unicodeobject.py
@@ -111,7 +111,8 @@
         @given(u=strategies.text(),
                start=strategies.integers(min_value=0, max_value=10),
                len1=strategies.integers(min_value=-1, max_value=10))
-        def test_hypo_index_find(u, start, len1, space):
+        def test_hypo_index_find(self, u, start, len1):
+            space = self.space
             if start + len1 < 0:
                 return   # skip this case
             v = u[start : start + len1]
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to