diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2014-07-05 15:06:51 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2014-07-05 15:06:51 -0400 |
commit | 225ef7c12b1e35c23e0c7b33ebd6ba14ff46d584 (patch) | |
tree | 43d602e4e09e514d991bd6afec6d12dc46528cfb /tests | |
parent | a6d5d6b9c9492254cf171337f8d94eabfc8f3b48 (diff) | |
download | python-setuptools-bitbucket-225ef7c12b1e35c23e0c7b33ebd6ba14ff46d584.tar.gz |
Use six for Python 2 compatibility
Diffstat (limited to 'tests')
-rw-r--r-- | tests/manual_test.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/manual_test.py b/tests/manual_test.py index e6489b1c..af4ec09b 100644 --- a/tests/manual_test.py +++ b/tests/manual_test.py @@ -7,7 +7,8 @@ import tempfile import subprocess from distutils.command.install import INSTALL_SCHEMES from string import Template -from setuptools.compat import urlopen + +from six.moves import urllib def _system_call(*args): assert subprocess.call(args) == 0 @@ -76,7 +77,7 @@ def test_full(): f.write(SIMPLE_BUILDOUT) with open('bootstrap.py', 'w') as f: - f.write(urlopen(BOOTSTRAP).read()) + f.write(urllib.request.urlopen(BOOTSTRAP).read()) _system_call('bin/python', 'bootstrap.py') _system_call('bin/buildout', '-q') |