1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47
  
     | 
    
      From: Dmitry Shachnev <mitya57@gmail.com>
Date: Mon, 14 Dec 2015 19:21:41 +0300
Subject: 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 4cafc9d..4367e48 100644
--- a/tests/test_getimagesize.py
+++ b/tests/test_getimagesize.py
@@ -4,6 +4,7 @@ import pytest
 PIL = pytest.importorskip('PIL')
 
 
+@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 cb3ad68..06d299f 100644
--- a/tests/test_imagesize.py
+++ b/tests/test_imagesize.py
@@ -1,6 +1,8 @@
 import textile
+import pytest
 
 
+@pytest.mark.skip("Requires network access")
 def test_imagesize():
     imgurl = 'http://www.google.com/intl/en_ALL/images/srpr/logo1w.png'
     result = textile.utils.getimagesize(imgurl)
diff --git a/tests/test_textile.py b/tests/test_textile.py
index 84e9ddf..39af595 100644
--- a/tests/test_textile.py
+++ b/tests/test_textile.py
@@ -126,6 +126,7 @@ def test_sanitize():
     assert result == expect
 
 
+@pytest.mark.skip("Requires network access")
 def test_imagesize():
     PIL = pytest.importorskip('PIL')  # noqa: F841
 
 
     |