Add import of os
File "../test_magic_set.py", line 64, in test_AdornLiteral
res = translateAlgebra(translateQuery(parsed_query))
File ".../rdflib/plugins/sparql/algebra.py", line 1427, in translateAlgebra
os.remove("query.txt")
name 'os' is not defined
@@ -808,6 +808,7 @@ def translateAlgebra(query_algebra: Query):
:return: The query form generated from the SPARQL 1.1 algebra tree for select queries.
"""
+ import os
def overwrite(text):
file = open("query.txt", "w+")
