[Python-modules-commits] [python-textile] 03/04: Skip a test that requires access to www.google.com.
Dmitry Shachnev
mitya57 at moszumanska.debian.org
Thu Jul 28 15:48:31 UTC 2016
This is an automated email from the git hooks/post-receive script.
mitya57 pushed a commit to branch master
in repository python-textile.
commit ad290637d00bee1e5cf47c5046099f09832a3f7e
Author: Dmitry Shachnev <mitya57 at gmail.com>
Date: Mon Dec 14 19:21:41 2015 +0300
Skip a test that requires access to www.google.com.
---
tests/test_getimagesize.py | 1 +
tests/test_imagesize.py | 2 ++
tests/test_textile.py | 1 +
3 files changed, 4 insertions(+)
diff --git a/tests/test_getimagesize.py b/tests/test_getimagesize.py
index 43f85e3..8b2e1a9 100644
--- a/tests/test_getimagesize.py
+++ b/tests/test_getimagesize.py
@@ -3,6 +3,7 @@ import pytest
PIL = pytest.importorskip('PIL')
+ at pytest.mark.skip(reason="Requires network access")
def test_imagesize():
assert getimagesize("http://www.google.com/intl/en_ALL/images/logo.gif") == (276, 110)
assert getimagesize("http://bad.domain/") == ''
diff --git a/tests/test_imagesize.py b/tests/test_imagesize.py
index 112989e..c953857 100644
--- a/tests/test_imagesize.py
+++ b/tests/test_imagesize.py
@@ -1,5 +1,7 @@
import textile
+import pytest
+ at pytest.mark.skip("Requires network access")
def test_imagesize():
imgurl = 'http://www.google.com/intl/en_ALL/images/srpr/logo1w.png'
result = textile.tools.imagesize.getimagesize(imgurl)
diff --git a/tests/test_textile.py b/tests/test_textile.py
index dd069fb..6d97561 100644
--- a/tests/test_textile.py
+++ b/tests/test_textile.py
@@ -84,6 +84,7 @@ def test_sanitize():
message = '{0}'.format(e)
assert "html5lib not available" in message
+ at pytest.mark.skip("Requires network access")
def test_imagesize():
PIL = pytest.importorskip('PIL')
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-textile.git
More information about the Python-modules-commits
mailing list