Blob Blame History Raw
From 21375d8f3488af5d405f5dbba7340cb20a22432b Mon Sep 17 00:00:00 2001
From: Elliott Sales de Andrade <quantum.analyst@gmail.com>
Date: Wed, 21 Feb 2018 23:47:09 -0500
Subject: [PATCH 2/7] Skip doctest that uses the network.

Signed-off-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
---
 lib/cartopy/io/shapereader.py | 17 +++++++++--------
 1 file changed, 9 insertions(+), 8 deletions(-)

diff --git a/lib/cartopy/io/shapereader.py b/lib/cartopy/io/shapereader.py
index f857b38..fae9367 100644
--- a/lib/cartopy/io/shapereader.py
+++ b/lib/cartopy/io/shapereader.py
@@ -24,19 +24,20 @@ geometry representation of shapely:
     >>> filename = natural_earth(resolution='110m',
     ...                          category='physical',
     ...                          name='geography_regions_points')
-    >>> reader = shapereader.Reader(filename)
-    >>> len(reader)
+    ... # doctest: +SKIP
+    >>> reader = shapereader.Reader(filename)  # doctest: +SKIP
+    >>> len(reader)  # doctest: +SKIP
     3
-    >>> records = list(reader.records())
-    >>> print(type(records[0]))
+    >>> records = list(reader.records())  # doctest: +SKIP
+    >>> print(type(records[0]))  # doctest: +SKIP
     <class 'cartopy.io.shapereader.Record'>
-    >>> print(sorted(records[0].attributes.keys()))
+    >>> print(sorted(records[0].attributes.keys()))  # doctest: +SKIP
     ['comment', 'featurecla', 'lat_y', 'long_x', 'min_zoom', 'name', \
 'name_alt', 'region', 'scalerank', 'subregion']
-    >>> print(records[0].attributes['name'])
+    >>> print(records[0].attributes['name'])  # doctest: +SKIP
     Niagara Falls
-    >>> geoms = list(reader.geometries())
-    >>> print(type(geoms[0]))
+    >>> geoms = list(reader.geometries())  # doctest: +SKIP
+    >>> print(type(geoms[0]))  # doctest: +SKIP
     <class 'shapely.geometry.point.Point'>
 
 """
-- 
2.14.3