Author: Matti Picus <[email protected]>
Branch: py3.6
Changeset: r96718:51716b155429
Date: 2019-05-30 15:49 +0300
http://bitbucket.org/pypy/pypy/changeset/51716b155429/

Log:    skip test that only works translated

diff --git a/pypy/module/_codecs/test/test_codecs.py 
b/pypy/module/_codecs/test/test_codecs.py
--- a/pypy/module/_codecs/test/test_codecs.py
+++ b/pypy/module/_codecs/test/test_codecs.py
@@ -436,6 +436,9 @@
 class AppTestPartialEvaluation:
     spaceconfig = dict(usemodules=['array',])
 
+    def setup_class(cls):
+        cls.w_appdirect = cls.space.wrap(cls.runappdirect)
+
     def test_partial_utf8(self):
         import _codecs
         encoding = 'utf-8'
@@ -1404,6 +1407,8 @@
     def test_invalid_type_errors(self):
         # hex is not a text encoding. it works via the codecs functions, but
         # not the methods
+        if not self.appdirect:
+            skip('"hex" only available after translation')
         import codecs
         res = codecs.decode(b"aabb", "hex")
         assert res == b"\xaa\xbb"
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to