From: Michael Trier Date: Tue, 23 Feb 2010 00:27:34 +0000 (+0000) Subject: Modified unittests docs to explain that --first-package-wins=True is required on... X-Git-Tag: rel_0_6beta2~147 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d050991944fdeb27e7674987622081494ebb6087;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git 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. --- diff --git a/README.unittests b/README.unittests index b53d8b166c..0e0fee120d 100644 --- a/README.unittests +++ b/README.unittests @@ -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 nose’s 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: diff --git a/setup.cfg b/setup.cfg index 6401118038..e380eadd25 100644 --- a/setup.cfg +++ b/setup.cfg @@ -4,4 +4,5 @@ tag_svn_revision = true [nosetests] with-sqlalchemy = true -exclude = ^examples \ No newline at end of file +exclude = ^examples +first-package-wins = true