blob: f5f160a138deea77193570f3dbd816c3d8364c48 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
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)
|