Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix for issue893 #1504

Merged
merged 3 commits into from Dec 14, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
8 changes: 7 additions & 1 deletion test/test_issue893.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,13 @@ def test_issue893_ds_unpickle():
picklestring = pickle.dumps(ds1)
ds2 = pickle.loads(picklestring)

for new_graph, graph in zip(ds2.graphs(), ds1.graphs()):
ds1graphs = list(ds1.graphs())
ds2graphs = list(ds2.graphs())

ds1graphs.sort()
ds2graphs.sort()

for new_graph, graph in zip(ds2graphs, ds1graphs):
assert new_graph.identifier == graph.identifier
for new_triple, triple in zip(
new_graph.triples((None, None, None)), graph.triples((None, None, None))
Expand Down