]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
Modified unittests docs to explain that --first-package-wins=True is required on...
authorMichael Trier <mtrier@gmail.com>
Tue, 23 Feb 2010 00:27:34 +0000 (00:27 +0000)
committerMichael Trier <mtrier@gmail.com>
Tue, 23 Feb 2010 00:27:34 +0000 (00:27 +0000)
README.unittests
setup.cfg

index b53d8b166c8e750918eeb1ceb4f80c519df08ab9..0e0fee120dda1a6e8d242fb437ebecf6bb5bd7e7 100644 (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 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:
 
index 6401118038d1591a44c580612564aabc51ccef94..e380eadd25f05ad2264cb81fcc23e894962ca370 100644 (file)
--- 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