diff options
| author | tarek <devnull@localhost> | 2009-12-21 14:48:33 +0100 |
|---|---|---|
| committer | tarek <devnull@localhost> | 2009-12-21 14:48:33 +0100 |
| commit | a31c2807d3d5462448c1922d26d116d8d711e181 (patch) | |
| tree | 77b6acd6fbdc73dcddfb6972708232ce9e16aeaa | |
| parent | a44b6270e763fb8ccde1d38c86ffc2e5a8db476e (diff) | |
| download | python-setuptools-bitbucket-a31c2807d3d5462448c1922d26d116d8d711e181.tar.gz | |
disable Py3
| -rw-r--r-- | tests/manual_test.py | 17 |
1 files changed, 8 insertions, 9 deletions
diff --git a/tests/manual_test.py b/tests/manual_test.py index 6cbf62a8..d9878832 100644 --- a/tests/manual_test.py +++ b/tests/manual_test.py @@ -1,16 +1,16 @@ #!/usr/bin/env python +import sys + +if sys.version_info[0] >= 3: + raise NotImplementedError('Py3 not supported in this test yet') + import os import shutil import tempfile import subprocess -import sys from distutils.command.install import INSTALL_SCHEMES from string import Template - -if sys.version_info[0] < 3: - from urllib2 import urlopen -else: - from urllib.request import urlopen +from urllib2 import urlopen def tempdir(func): def _tempdir(*args, **kwargs): @@ -38,7 +38,7 @@ eggs = BOOTSTRAP = 'http://python-distribute.org/bootstrap.py' PYVER = sys.version.split()[0][:3] - +DEV_URL = 'http://bitbucket.org/tarek/distribute/get/0.6-maintenance.zip#egg=distribute-dev' _VARS = {'base': '.', 'py_version_short': PYVER} @@ -54,7 +54,7 @@ def test_virtualenv(): """virtualenv with distribute""" purelib = os.path.abspath(Template(PURELIB).substitute(**_VARS)) os.system('virtualenv --no-site-packages . --distribute') - os.system('bin/easy_install -q distribute==dev') + os.system('bin/easy_install distribute==dev') # linux specific site_pkg = os.listdir(purelib) site_pkg.sort() @@ -88,7 +88,6 @@ def test_full(): assert eggs[1:] == ['extensions-0.3-py2.6.egg', 'zc.recipe.egg-1.2.2-py2.6.egg'] - if __name__ == '__main__': test_virtualenv() test_full() |
