[TIP] Apparently spurious warning with Tox 1.1
Michael Foord
michael at voidspace.org.uk
Mon Jul 11 15:08:05 PDT 2011
On 11/07/2011 22:25, Michael Foord wrote:
> Hey all,
>
> I've updated to tox 1.1 (for testing mock). It looks like the problems
> I had with 1.0 are now solved and it works with both Python 3.2 and pypy.
>
> However I'm now getting a warning that seems incorrect. It reports
> that "unit2" has not been installed in the testenv. But it has and the
> command works:
>
Note that this still happens if I blow away .tox and rerun.
Michael
>
> $ tox
> _________________________________ [tox sdist]
> __________________________________
> [TOX] ***creating sdist package
> [TOX] /Users/michael/Dev/Packages/mock$
> /Library/Frameworks/Python.framework/Versions/2.6/Resources/Python.app/Contents/MacOS/Python
> setup.py sdist --formats=zip --dist-dir .tox/dist >.tox/log/0.log
> [TOX] ***copying new sdistfile to
> '/Users/michael/.tox/distshare/mock-0.8.0alpha2.zip'
> ______________________________ [tox testenv:py24]
> ______________________________
> [TOX] ***recreating virtualenv py24 (configchange/incomplete install
> detected)
> [TOX] /Users/michael/Dev/Packages/mock/.tox$
> /Library/Frameworks/Python.framework/Versions/2.4/bin/python2.4
> ../../../../../../Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/site-packages/tox/virtualenv.py
> --distribute --no-site-packages py24 >py24/log/0.log
> [TOX] ***installing dependencies: unittest2
> [TOX] /Users/michael/Dev/Packages/mock/.tox/py24/log$ ../bin/pip
> install
> --download-cache=/Users/michael/Dev/Packages/mock/.tox/_download
> unittest2 >1.log
> [TOX] ***installing sdist
> [TOX] /Users/michael/Dev/Packages/mock/.tox/py24/log$ ../bin/pip
> install
> --download-cache=/Users/michael/Dev/Packages/mock/.tox/_download
> ../../dist/mock-0.8.0alpha2.zip >2.log
> [TOX] WARNING:using
> '/Users/michael/Dev/Packages/mock/.tox/py24/bin/unit2' not installed
> in testenv:
> /Users/michael/Dev/Packages/mock/.tox/py24
> Forgot to specify a dependency?
> [TOX] /Users/michael/Dev/Packages/mock$
> /Users/michael/Dev/Packages/mock/.tox/py24/bin/unit2 discover
> ...........................................s...............................ss.s................................................................x..........................................s
>
> ----------------------------------------------------------------------
> Ran 187 tests in 0.715s
>
> OK (skipped=5, expected failures=1)
>
> All the best,
>
> Michael Foord
>
--
http://www.voidspace.org.uk/
May you do good and not evil
May you find forgiveness for yourself and forgive others
May you share freely, never taking more than you give.
-- the sqlite blessing http://www.sqlite.org/different.html
More information about the testing-in-python
mailing list