summaryrefslogtreecommitdiff
path: root/test/test_namespace.py
diff options
context:
space:
mode:
authorGunnar Aastrand Grimnes <gromgull@gmail.com>2017-01-30 21:50:05 +0100
committerGunnar Aastrand Grimnes <gromgull@gmail.com>2017-01-30 21:50:05 +0100
commitbfcde8482401393ea183242f0ddca5bff73afc2c (patch)
treea638c67c850c2ba952cf419f448034a5e8b18196 /test/test_namespace.py
parentff4616e6e58e83fae518770f0af2e6ca4922ac42 (diff)
downloadrdflib-bfcde8482401393ea183242f0ddca5bff73afc2c.tar.gz
removed most of the six import from py3compat
now six is used throughout.
Diffstat (limited to 'test/test_namespace.py')
-rw-r--r--test/test_namespace.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_namespace.py b/test/test_namespace.py
index d6aa8e68..520bde9c 100644
--- a/test/test_namespace.py
+++ b/test/test_namespace.py
@@ -2,7 +2,7 @@ import unittest
from rdflib.graph import Graph
from rdflib.term import URIRef
-from rdflib.py3compat import b
+from six import b
class NamespacePrefixTest(unittest.TestCase):
@@ -14,7 +14,7 @@ class NamespacePrefixTest(unittest.TestCase):
self.assertEqual(g.compute_qname(URIRef("http://foo/bar#baz")),
("ns2", URIRef("http://foo/bar#"), "baz"))
-
+
# should skip to ns4 when ns3 is already assigned
g.bind("ns3", URIRef("http://example.org/"))
self.assertEqual(g.compute_qname(URIRef("http://blip/blop")),
@@ -28,7 +28,7 @@ class NamespacePrefixTest(unittest.TestCase):
n3 = g.serialize(format="n3")
# Gunnar disagrees that this is right:
# self.assertTrue("<http://example.com/foo> ns1:bar <http://example.com/baz> ." in n3)
- # as this is much prettier, and ns1 is already defined:
+ # as this is much prettier, and ns1 is already defined:
self.assertTrue(b("ns1:foo ns1:bar ns1:baz .") in n3)
def test_n32(self):
@@ -40,4 +40,3 @@ class NamespacePrefixTest(unittest.TestCase):
n3 = g.serialize(format="n3")
self.assertTrue(b("<http://example1.com/foo> ns1:bar <http://example3.com/baz> .") in n3)
-