Modified unittests docs to explain that --first-package-wins=True is required on Windows. Also modified the setup.cfg to add this option so that if using the default config there will be consistent behavior on all platforms.

This commit is contained in:
Michael Trier 2010-02-23 00:27:34 +00:00
parent 9f020d3ba3
commit d050991944
2 changed files with 11 additions and 1 deletions

View File

@ -43,6 +43,15 @@ To run all tests:
$ nosetests
If you're running the tests on Microsoft Windows, then there is an additional
argument that must be passed to nosetests:
> nosetests --first-package-wins=True
This is required because noses importer will normally evict a package from
sys.modules if it sees a package with the same name in a different location.
Setting this argument disables that behavior.
Assuming all tests pass, this is a very unexciting output. To make it more
intersesting:

View File

@ -4,4 +4,5 @@ tag_svn_revision = true
[nosetests]
with-sqlalchemy = true
exclude = ^examples
exclude = ^examples
first-package-wins = true