diff options
| author | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-06-17 19:23:33 +0100 |
|---|---|---|
| committer | Vinay Sajip <vinay_sajip@yahoo.co.uk> | 2013-06-17 19:23:33 +0100 |
| commit | 744a61f18bbfcbf7dfaa08886185b4595d8b7bcb (patch) | |
| tree | 0a46190af97901b276e7881b2e74ee46d5056d94 /tests/test_ez_setup.py | |
| parent | c003c86fc22b8d20b81226d1e74c95a5c885e314 (diff) | |
| download | python-setuptools-git-744a61f18bbfcbf7dfaa08886185b4595d8b7bcb.tar.gz | |
Misc. updates following 2to3 checks.
--HG--
branch : single-codebase
Diffstat (limited to 'tests/test_ez_setup.py')
| -rw-r--r-- | tests/test_ez_setup.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/test_ez_setup.py b/tests/test_ez_setup.py index 922bd884..6dd4c055 100644 --- a/tests/test_ez_setup.py +++ b/tests/test_ez_setup.py @@ -27,7 +27,10 @@ class TestSetup(unittest.TestCase): "--dist-dir", "%s" % self.tmpdir) tarball = os.listdir(self.tmpdir)[0] self.tarball = os.path.join(self.tmpdir, tarball) - import urllib2 + try: + import urllib2 + except ImportError: + import urllib.request as urllib2 urllib2.urlopen = self.urlopen def tearDown(self): |
