summaryrefslogtreecommitdiff
path: root/heatclient/tests/unit/test_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'heatclient/tests/unit/test_utils.py')
-rw-r--r--heatclient/tests/unit/test_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/heatclient/tests/unit/test_utils.py b/heatclient/tests/unit/test_utils.py
index 9c01f49..ec700f2 100644
--- a/heatclient/tests/unit/test_utils.py
+++ b/heatclient/tests/unit/test_utils.py
@@ -15,6 +15,7 @@
import os
from unittest import mock
+from urllib import request
import testtools
@@ -386,7 +387,7 @@ class TestURLFunctions(testtools.TestCase):
def test_normalise_file_path_to_url_relative(self):
self.assertEqual(
- 'file://%s/foo' % os.getcwd(),
+ 'file://' + request.pathname2url('%s/foo' % os.getcwd()),
utils.normalise_file_path_to_url(
'foo'))