diff options
Diffstat (limited to 'dev-python/future/files')
-rw-r--r-- | dev-python/future/files/future-0.18.2-py39-fileurl.patch | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/dev-python/future/files/future-0.18.2-py39-fileurl.patch b/dev-python/future/files/future-0.18.2-py39-fileurl.patch new file mode 100644 index 000000000000..71ed088edcb5 --- /dev/null +++ b/dev-python/future/files/future-0.18.2-py39-fileurl.patch @@ -0,0 +1,22 @@ +diff --git a/tests/test_future/test_urllib_toplevel.py b/tests/test_future/test_urllib_toplevel.py +index 68bc4c9..923b2e8 100644 +--- a/tests/test_future/test_urllib_toplevel.py ++++ b/tests/test_future/test_urllib_toplevel.py +@@ -120,7 +120,7 @@ class urlopen_FileTests(unittest.TestCase): + finally: + f.close() + self.pathname = support.TESTFN +- self.returned_obj = urlopen("file:%s" % self.pathname) ++ self.returned_obj = urlopen("file:%s" % urllib_parse.quote(self.pathname)) + + def tearDown(self): + """Shut down the open object""" +@@ -167,7 +167,7 @@ class urlopen_FileTests(unittest.TestCase): + self.assertIsInstance(self.returned_obj.info(), email_message.Message) + + def test_geturl(self): +- self.assertEqual(self.returned_obj.geturl(), self.pathname) ++ self.assertEqual(self.returned_obj.geturl(), urllib_parse.quote(self.pathname)) + + def test_getcode(self): + self.assertIsNone(self.returned_obj.getcode()) |