aboutsummaryrefslogtreecommitdiffstats
path: root/tests/manual_test.py
diff options
context:
space:
mode:
authortarek <none@none>2009-12-21 14:48:33 +0100
committertarek <none@none>2009-12-21 14:48:33 +0100
commit8b91eb9ff7f2fa30d8c405b737d85e0165b4b99f (patch)
tree5276582001ddf6db306b9acb5a7116d0695fa206 /tests/manual_test.py
parent6f01576b084ee29da8fd89ee34bda163be2ddf61 (diff)
downloadexternal_python_setuptools-8b91eb9ff7f2fa30d8c405b737d85e0165b4b99f.tar.gz
external_python_setuptools-8b91eb9ff7f2fa30d8c405b737d85e0165b4b99f.tar.bz2
external_python_setuptools-8b91eb9ff7f2fa30d8c405b737d85e0165b4b99f.zip
disable Py3
--HG-- branch : distribute extra : rebase_source : 05a91504dccded377676a993266f9b619b721aaa
Diffstat (limited to 'tests/manual_test.py')
-rw-r--r--tests/manual_test.py17
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()