gentoo-full-overlay/dev-python/pyquery/files/pyquery-1.4.0-network-tests.patch

23 lines
700 B
Diff
Raw Normal View History

Disable test that requires a network connection.
--- a/tests/test_pyquery.py
+++ b/tests/test_pyquery.py
@@ -613,10 +613,10 @@
self.s.shutdown()
-class TestWebScrappingEncoding(TestCase):
-
- def test_get(self):
- d = pq(u'http://ru.wikipedia.org/wiki/Заглавная_страница',
- method='get')
- print(d)
- self.assertEqual(d('#pt-login').text(), u'Войти')
+#class TestWebScrappingEncoding(TestCase):
+#
+# def test_get(self):
+# d = pq(u'http://ru.wikipedia.org/wiki/Заглавная_страница',
+# method='get')
+# print(d)
+# self.assertEqual(d('#pt-login').text(), u'Войти')