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

22 lines
700 B
Diff
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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'Войти')