summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Trier <mtrier@gmail.com>2010-02-23 00:27:34 +0000
committerMichael Trier <mtrier@gmail.com>2010-02-23 00:27:34 +0000
commitd050991944fdeb27e7674987622081494ebb6087 (patch)
treeb79cab7a23ca886a03d85ae8dd6dcdebcb2ef0df
parent9f020d3ba342cb777d20f7eed0304e8806d47207 (diff)
downloadsqlalchemy-d050991944fdeb27e7674987622081494ebb6087.tar.gz
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.
-rw-r--r--README.unittests9
-rw-r--r--setup.cfg3
2 files changed, 11 insertions, 1 deletions
diff --git a/README.unittests b/README.unittests
index b53d8b166..0e0fee120 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 640111803..e380eadd2 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