diff options
Diffstat (limited to 'dev-python/pyquery/files/pyquery-1.4.0-network-tests.patch')
-rw-r--r-- | dev-python/pyquery/files/pyquery-1.4.0-network-tests.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-python/pyquery/files/pyquery-1.4.0-network-tests.patch b/dev-python/pyquery/files/pyquery-1.4.0-network-tests.patch new file mode 100644 index 000000000000..337728794bb9 --- /dev/null +++ b/dev-python/pyquery/files/pyquery-1.4.0-network-tests.patch @@ -0,0 +1,22 @@ +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'Войти') |