summaryrefslogtreecommitdiff
path: root/test/test_parsers/test_parser_hext.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_parsers/test_parser_hext.py')
-rw-r--r--test/test_parsers/test_parser_hext.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test_parsers/test_parser_hext.py b/test/test_parsers/test_parser_hext.py
index f4d1184a..5f4a180b 100644
--- a/test/test_parsers/test_parser_hext.py
+++ b/test/test_parsers/test_parser_hext.py
@@ -1,7 +1,5 @@
-import sys
from pathlib import Path
-sys.path.append(str(Path(__file__).parent.parent.absolute()))
from rdflib import ConjunctiveGraph, Dataset, Literal
from rdflib.namespace import XSD
@@ -116,8 +114,8 @@ def test_roundtrip():
try:
cg = ConjunctiveGraph().parse(f, format="nt")
# print(cg.serialize(format="n3"))
- except:
- print(f"Skipping: could not NT parse")
+ except Exception:
+ print("Skipping: could not NT parse")
skipped += 1
skip = True
if not skip: