Anonymous avatar Anonymous committed 609d908

disable Py3

Comments (0)

Files changed (1)

tests/manual_test.py

 #!/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):
 
 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}
     """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()
     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()
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.