diff options
author | Daniele Tricoli <eriol@mornie.org> | 2015-10-08 13:19:46 -0700 |
---|---|---|
committer | SVN-Git Migration <python-modules-team@lists.alioth.debian.org> | 2015-10-08 13:19:46 -0700 |
commit | e720aa3dea81bf5c30d9a897f9cbae18bf6a4228 (patch) | |
tree | 36e781b19665082d50c5e84104010a0cfc685a1d /test | |
parent | e6838673bda9af1e9bf7c4f71b25cf3e3dfc1253 (diff) | |
download | python-urllib3-e720aa3dea81bf5c30d9a897f9cbae18bf6a4228.tar python-urllib3-e720aa3dea81bf5c30d9a897f9cbae18bf6a4228.tar.gz |
Do not use embedded copy of python-six.
Forwarded: not-needed
Last-Update: 2015-05-03
Patch-Name: 01_do-not-use-embedded-python-six.patch
Diffstat (limited to 'test')
-rw-r--r-- | test/__init__.py | 2 | ||||
-rw-r--r-- | test/contrib/test_pyopenssl.py | 2 | ||||
-rw-r--r-- | test/test_collections.py | 2 | ||||
-rw-r--r-- | test/test_fields.py | 2 | ||||
-rw-r--r-- | test/test_filepost.py | 2 | ||||
-rw-r--r-- | test/test_retry.py | 2 |
6 files changed, 6 insertions, 6 deletions
diff --git a/test/__init__.py b/test/__init__.py index 172493c..7ea6358 100644 --- a/test/__init__.py +++ b/test/__init__.py @@ -8,7 +8,7 @@ import socket from nose.plugins.skip import SkipTest from urllib3.exceptions import MaxRetryError, HTTPWarning -from urllib3.packages import six +import six # We need a host that will not immediately close the connection with a TCP # Reset. SO suggests this hostname diff --git a/test/contrib/test_pyopenssl.py b/test/contrib/test_pyopenssl.py index 5d57527..f23ff19 100644 --- a/test/contrib/test_pyopenssl.py +++ b/test/contrib/test_pyopenssl.py @@ -1,5 +1,5 @@ from nose.plugins.skip import SkipTest -from urllib3.packages import six +import six if six.PY3: raise SkipTest('Testing of PyOpenSSL disabled on PY3') diff --git a/test/test_collections.py b/test/test_collections.py index 9d72939..78ef634 100644 --- a/test/test_collections.py +++ b/test/test_collections.py @@ -4,7 +4,7 @@ from urllib3._collections import ( HTTPHeaderDict, RecentlyUsedContainer as Container ) -from urllib3.packages import six +import six xrange = six.moves.xrange from nose.plugins.skip import SkipTest diff --git a/test/test_fields.py b/test/test_fields.py index cdec68b..66da148 100644 --- a/test/test_fields.py +++ b/test/test_fields.py @@ -1,7 +1,7 @@ import unittest from urllib3.fields import guess_content_type, RequestField -from urllib3.packages.six import u +from six import u class TestRequestField(unittest.TestCase): diff --git a/test/test_filepost.py b/test/test_filepost.py index 390dbb3..ecc6710 100644 --- a/test/test_filepost.py +++ b/test/test_filepost.py @@ -2,7 +2,7 @@ import unittest from urllib3.filepost import encode_multipart_formdata, iter_fields from urllib3.fields import RequestField -from urllib3.packages.six import b, u +from six import b, u BOUNDARY = '!! test boundary !!' diff --git a/test/test_retry.py b/test/test_retry.py index 421e508..8fcc287 100644 --- a/test/test_retry.py +++ b/test/test_retry.py @@ -1,7 +1,7 @@ import unittest from urllib3.response import HTTPResponse -from urllib3.packages.six.moves import xrange +from six.moves import xrange from urllib3.util.retry import Retry from urllib3.exceptions import ( ConnectTimeoutError, |