summaryrefslogtreecommitdiffstats
path: root/Python/Dependencies/future-0.18.2/tests/test_future/test_imports_urllib.py
diff options
context:
space:
mode:
authoryum <yum.food.vr@gmail.com>2023-01-01 21:05:27 -0800
committeryum <yum.food.vr@gmail.com>2023-01-01 21:44:45 -0800
commite25bdba3a3a53b09be5269d8b065c13b73ab55c3 (patch)
tree1d1dc1d94cde92c2f4f8ce86017395054787515d /Python/Dependencies/future-0.18.2/tests/test_future/test_imports_urllib.py
parent0d408cc812a094a708edbe4baf536e928731cfc3 (diff)
Embed git in package
package.ps1 fetches PortableGit and embeds it in the package. This eliminates all but one runtime dependency (MSVC++ Redistributable). * Move Python into a new FOSS folder.
Diffstat (limited to 'Python/Dependencies/future-0.18.2/tests/test_future/test_imports_urllib.py')
-rw-r--r--Python/Dependencies/future-0.18.2/tests/test_future/test_imports_urllib.py44
1 files changed, 0 insertions, 44 deletions
diff --git a/Python/Dependencies/future-0.18.2/tests/test_future/test_imports_urllib.py b/Python/Dependencies/future-0.18.2/tests/test_future/test_imports_urllib.py
deleted file mode 100644
index cbc616f..0000000
--- a/Python/Dependencies/future-0.18.2/tests/test_future/test_imports_urllib.py
+++ /dev/null
@@ -1,44 +0,0 @@
-from __future__ import absolute_import, print_function
-
-import sys
-from future.tests.base import unittest
-from future.standard_library import install_aliases
-
-
-class ImportUrllibTest(unittest.TestCase):
- def test_urllib(self):
- """
- Tests that urllib isn't changed from under our feet. (This might not
- even be a problem?)
- """
- from future import standard_library
- import urllib
- orig_file = urllib.__file__
- with standard_library.hooks():
- import urllib.response
- self.assertEqual(orig_file, urllib.__file__)
-
- def test_issue_158(self):
- """
- CherryPy conditional import in _cpcompat.py: issue 158
- """
- install_aliases()
- try:
- from urllib.parse import unquote as parse_unquote
-
- def unquote_qs(atom, encoding, errors='strict'):
- return parse_unquote(
- atom.replace('+', ' '),
- encoding=encoding,
- errors=errors)
- except ImportError:
- from urllib import unquote as parse_unquote
-
- def unquote_qs(atom, encoding, errors='strict'):
- return parse_unquote(atom.replace('+', ' ')).decode(encoding, errors)
- self.assertEqual(unquote_qs('/%7Econnolly/', 'utf-8'),
- '/~connolly/')
-
-
-if __name__ == '__main__':
- unittest.main()