You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-python/pyquery/files/pyquery-1.4.1-tests-pypy.patch

21 lines
715 B

diff --git a/tests/test_pyquery.py b/tests/test_pyquery.py
index d29b27b..e6a9230 100644
--- a/tests/test_pyquery.py
+++ b/tests/test_pyquery.py
@@ -7,6 +7,7 @@ import os
import sys
import time
import unittest
+import platform
from lxml import etree
from pyquery.pyquery import PyQuery as pq, no_default
from pyquery.openers import HAS_REQUEST
@@ -33,6 +34,7 @@ path_to_invalid_file = os.path.join(dirname, 'invalid.xml')
class TestUnicode(TestCase):
+ @unittest.skipIf(sys.hexversion > 0x3000000 and 'pypy' in platform.python_implementation().lower(), "broken on pypy3")
def test_unicode(self):
xml = pq(u"<html><p>é</p></html>")
self.assertEqual(type(xml.html()), text_type)