diff options
author | Tom Gillespie <tgbugs@gmail.com> | 2019-03-29 01:23:05 -0400 |
---|---|---|
committer | Tom Gillespie <tgbugs@gmail.com> | 2020-03-12 19:41:09 -0700 |
commit | 1096bb880704c2c9327da2da6d35e63f5d06fb77 (patch) | |
tree | a379604aaeeada1ad4af5c710b602405e6c05a72 /test | |
parent | d6883c4c460d0a6338a2d477fe63b34fb702be6e (diff) | |
download | rdflib-1096bb880704c2c9327da2da6d35e63f5d06fb77.tar.gz |
n3 test_roundtrip skips updated
Diffstat (limited to 'test')
-rw-r--r-- | test/test_n3_suite.py | 3 | ||||
-rw-r--r-- | test/test_roundtrip.py | 10 |
2 files changed, 6 insertions, 7 deletions
diff --git a/test/test_n3_suite.py b/test/test_n3_suite.py index cebe086f..21e6bcba 100644 --- a/test/test_n3_suite.py +++ b/test/test_n3_suite.py @@ -23,8 +23,7 @@ def _get_test_files_formats(): def all_n3_files(): skiptests = [ - 'test/n3/example-lots_of_graphs.n3', # the issue here seems to be with QuotedGraph, should this work? - # 'test/n3/n3-writer-test-30.n3', # this reveals the broken xml qname handling + 'test/n3/example-lots_of_graphs.n3', # only n3 can serialize QuotedGraph, no point in testing roundtrip ] for fpath, fmt in _get_test_files_formats(): if fpath in skiptests: diff --git a/test/test_roundtrip.py b/test/test_roundtrip.py index fd58ea6a..9dfed952 100644 --- a/test/test_roundtrip.py +++ b/test/test_roundtrip.py @@ -29,10 +29,9 @@ tests roundtripping through rdf/xml with only the literals-02 file SKIP = [ ('xml', 'test/n3/n3-writer-test-29.n3'), # has predicates that cannot be shortened to strict qnames - ('application/rdf+xml', 'test/n3/n3-writer-test-29.n3'), # has predicates that cannot be shortened to strict qnames ('xml', 'test/nt/qname-02.nt'), # uses a property that cannot be qname'd - # uses a property that cannot be qname'd - ('application/rdf+xml', 'test/nt/qname-02.nt'), + ('trix', 'test/n3/strquot.n3'), # contains charachters forbidden by the xml spec + ('xml', 'test/n3/strquot.n3'), # contains charachters forbidden by the xml spec ] @@ -48,6 +47,7 @@ def roundtrip(e, verbose=False): if verbose: print("S:") print(s) + print(s.decode()) g2 = rdflib.ConjunctiveGraph() g2.parse(data=s, format=testfmt) @@ -57,12 +57,12 @@ def roundtrip(e, verbose=False): print("Diff:") print("%d triples in both" % len(both)) print("G1 Only:") - for t in first: + for t in sorted(first): print(t) print("--------------------") print("G2 Only") - for t in second: + for t in sorted(second): print(t) assert rdflib.compare.isomorphic(g1, g2) |