summaryrefslogtreecommitdiff
path: root/test/test_n3.py
diff options
context:
space:
mode:
authorGraham Higgins <gjh@bel-epa.com>2012-01-25 04:59:54 +0000
committerGraham Higgins <gjh@bel-epa.com>2012-01-25 04:59:54 +0000
commita787b51d682a9d7802935ee993e587d67e4eaf96 (patch)
treee786f97b880b316f0e2d0bc4499d24373561cd3a /test/test_n3.py
parent65561dd161c086aa7ad6d785781735f48298902a (diff)
downloadrdflib-a787b51d682a9d7802935ee993e587d67e4eaf96.tar.gz
Fix to error condition reported in issue206
Diffstat (limited to 'test/test_n3.py')
-rw-r--r--test/test_n3.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_n3.py b/test/test_n3.py
index 2fa54af1..c419acf4 100644
--- a/test/test_n3.py
+++ b/test/test_n3.py
@@ -60,6 +60,7 @@ n3:context a rdf:Property; rdfs:domain n3:statement;
import unittest
+from urllib2 import URLError
from rdflib.graph import Graph, ConjunctiveGraph
@@ -160,7 +161,11 @@ foo-bar:Ex foo-bar:name "Test" . """
def testParse(self):
g = ConjunctiveGraph()
- g.parse("http://groups.csail.mit.edu/dig/2005/09/rein/examples/troop42-policy.n3", format="n3")
+ try:
+ g.parse("http://groups.csail.mit.edu/dig/2005/09/rein/examples/troop42-policy.n3", format="n3")
+ except URLError:
+ from nose import SkipTest
+ raise SkipTest('No network to retrieve the information, skipping test')
cases = ['no quotes',
"single ' quote",