summaryrefslogtreecommitdiff
path: root/test/test_issue554.py
blob: 4ea83d21b9cca594be3b9e79799c5bd67d7b1c2e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# test for https://github.com/RDFLib/rdflib/issues/554

import rdflib


def test_sparql_empty_no_row():
    g = rdflib.Graph()
    q = "select ?whatever { }"
    r = list(g.query(q))
    assert r == [], "sparql query %s should return empty list but returns %s" % (q, r)


if __name__ == "__main__":
    test_sparql_empty_no_row()