summaryrefslogtreecommitdiff
path: root/test/test_issue248.py
diff options
context:
space:
mode:
authorGraham Higgins <gjh-github@bel-epa.com>2013-01-26 10:15:52 +0000
committerGraham Higgins <gjh-github@bel-epa.com>2013-01-26 10:15:52 +0000
commitb0394458c23992133e9ca8f156d485eb473e8502 (patch)
tree4c73ab7c036fef7d17ffc5a5ee62b9668f9cb260 /test/test_issue248.py
parent56b4e3f6dc8b7bdb06acd2bd1df1f39272330b4c (diff)
downloadrdflib-b0394458c23992133e9ca8f156d485eb473e8502.tar.gz
fix py3-incompat in test code.
Diffstat (limited to 'test/test_issue248.py')
-rw-r--r--test/test_issue248.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/test_issue248.py b/test/test_issue248.py
index d3418ada..4092193e 100644
--- a/test/test_issue248.py
+++ b/test/test_issue248.py
@@ -85,7 +85,7 @@ class TestSerialization(unittest.TestCase):
(concept,
DC['LCC'],
rdflib.Literal('AC999.0999 - AC999999.Z9999')))
- sg = graph.serialize(format='n3', base=LCCO)
+ sg = graph.serialize(format='n3', base=LCCO).decode('utf8')
# See issue 248
self.assert_(
'<http://loc.gov/catdir/cpso/lcco/1>' in sg, sg) # BAD BAD
@@ -123,7 +123,7 @@ class TestSerialization(unittest.TestCase):
graph.bind('skos', SKOS)
graph.bind('lcco', LCCO)
graph.parse(data=gp, format="xml")
- sg = graph.serialize(format='n3', base=LCCO)
+ sg = graph.serialize(format='n3', base=LCCO).decode('utf8')
self.assert_('<1> a skos:Concept ;' not in sg, sg) # BAD BAD BAD
if __name__ == "__main__":