summaryrefslogtreecommitdiff
path: root/test/test_parsers/test_swap_n3.py
diff options
context:
space:
mode:
Diffstat (limited to 'test/test_parsers/test_swap_n3.py')
-rw-r--r--test/test_parsers/test_swap_n3.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/test/test_parsers/test_swap_n3.py b/test/test_parsers/test_swap_n3.py
index cebb55ad..e173b845 100644
--- a/test/test_parsers/test_swap_n3.py
+++ b/test/test_parsers/test_swap_n3.py
@@ -1,10 +1,8 @@
import os
+from test.data import TEST_DATA_DIR
import pytest
-maketrans = str.maketrans
-from test.data import TEST_DATA_DIR
-
import rdflib
"""
@@ -116,7 +114,7 @@ def get_cases():
tfiles += files
for tfile in set(tfiles):
gname = tfile.split("/swap-n3/swap/test/")[1][:-3].translate(
- maketrans("-/", "__")
+ str.maketrans("-/", "__")
)
e = Envelope(gname, tfile)
if gname in skiptests: