We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 591deaa commit b4fedcdCopy full SHA for b4fedcd
1 file changed
test/test_doc.py
@@ -1,6 +1,10 @@
1
import datetime
2
import os
3
import unittest
4
+try:
5
+ from urllib.request import pathname2url
6
+except ImportError:
7
+ from urllib import pathname2url
8
9
from odml import Document, Section, Property
10
from odml.doc import BaseDocument
@@ -93,7 +97,7 @@ def test_get_terminology_equivalent(self):
93
97
dir_path = os.path.dirname(os.path.realpath(__file__))
94
98
repo_file = os.path.join(dir_path, "resources",
95
99
"local_repository_file_v1.1.xml")
96
- local_url = "file://%s" % repo_file
100
+ local_url = "file://%s" % pathname2url(repo_file)
101
102
doc = Document(repository=local_url)
103
0 commit comments