Skip to content

Instantly share code, notes, and snippets.

@tk0miya
Created December 22, 2013 00:15
Show Gist options
  • Save tk0miya/8076935 to your computer and use it in GitHub Desktop.
Save tk0miya/8076935 to your computer and use it in GitHub Desktop.
unittest2 inferno!
$ python2.4 virtualenv-1.7.2/virtualenv.py py24
New python executable in py24/bin/python2.4
Also creating executable in py24/bin/python
Installing setuptools.............done.
Installing pip...............done.
$ py24/bin/python setup.py develop
running develop
running egg_info
creating src/diff_highlight.egg-info
writing src/diff_highlight.egg-info/PKG-INFO
writing top-level names to src/diff_highlight.egg-info/top_level.txt
writing dependency_links to src/diff_highlight.egg-info/dependency_links.txt
writing entry points to src/diff_highlight.egg-info/entry_points.txt
writing manifest file 'src/diff_highlight.egg-info/SOURCES.txt'
reading manifest file 'src/diff_highlight.egg-info/SOURCES.txt'
reading manifest template 'MANIFEST.in'
writing manifest file 'src/diff_highlight.egg-info/SOURCES.txt'
running build_ext
Creating /home/ubuntu/src/bitbucket.org/tk0miya/diff-highlight/py24/lib/python2.4/site-packages/diff-highlight.egg-link (link to src)
Adding diff-highlight 0.1.0 to easy-install.pth file
Installing diff-highlight script to /home/ubuntu/src/bitbucket.org/tk0miya/diff-highlight/py24/bin
Installed /home/ubuntu/src/bitbucket.org/tk0miya/diff-highlight/src
Processing dependencies for diff-highlight==0.1.0
Finished processing dependencies for diff-highlight==0.1.0
$ py24/bin/pip install nose unittest2
Downloading/unpacking nose
Running setup.py egg_info for package nose
no previously-included directories found matching 'doc/.build'
Downloading/unpacking unittest2
Running setup.py egg_info for package unittest2
Installing collected packages: nose, unittest2
Running setup.py install for nose
no previously-included directories found matching 'doc/.build'
Installing nosetests script to /home/ubuntu/src/bitbucket.org/tk0miya/diff-highlight/py24/bin
Installing nosetests-2.4 script to /home/ubuntu/src/bitbucket.org/tk0miya/diff-highlight/py24/bin
Running setup.py install for unittest2
changing mode of build/scripts-2.4/unit2.py from 664 to 775
changing mode of build/scripts-2.4/unit2 from 664 to 775
File "/home/ubuntu/src/bitbucket.org/tk0miya/diff-highlight/py24/lib/python2.4/site-packages/unittest2/test/test_unittest2_with.py", line 24
with ctx:
^
SyntaxError: invalid syntax
changing mode of /home/ubuntu/src/bitbucket.org/tk0miya/diff-highlight/py24/bin/unit2 to 775
changing mode of /home/ubuntu/src/bitbucket.org/tk0miya/diff-highlight/py24/bin/unit2.py to 775
Installing unit2 script to /home/ubuntu/src/bitbucket.org/tk0miya/diff-highlight/py24/bin
Installing unit2-2.4 script to /home/ubuntu/src/bitbucket.org/tk0miya/diff-highlight/py24/bin
Successfully installed nose unittest2
Cleaning up...
$ py24/bin/nosetests
E
======================================================================
ERROR: Failure: ImportError (No module named six)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/ubuntu/src/bitbucket.org/tk0miya/diff-highlight/py24/lib/python2.4/site-packages/nose/failure.py", line 37, in runTest
if isinstance(self.exc_val, BaseException):
NameError: global name 'BaseException' is not defined
----------------------------------------------------------------------
Ran 1 test in 0.012s
FAILED (errors=1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment