We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 6c51471 commit d9a1fe4Copy full SHA for d9a1fe4
tests/test_importers/test_rdfs_importer.py
@@ -1,6 +1,15 @@
1
# -*- coding: utf-8 -*-
2
3
-"""Test the module can be imported."""
+# Monkey patching jsonobj to fix windows issue
4
+import platform
5
+
6
+if platform.system() == "Windows":
7
+ from jsonasobj2 import JsonObj
8
+ if not hasattr(JsonObj, 'values'):
9
+ def _values(self):
10
+ return dict(self).values()
11
+ JsonObj.values = _values
12
13
14
from io import StringIO
15
import unittest
@@ -20,7 +29,6 @@
20
29
OUTSCHEMA = os.path.join(OUTPUT_DIR, 'reproschema-from-ttl.yaml')
21
30
FOAF = os.path.join(INPUT_DIR, 'foaf_snippet.ttl')
22
31
23
-
24
32
def test_import_foaf():
25
33
engine = RdfsImportEngine()
26
34
schema = engine.convert(FOAF)
0 commit comments