summaryrefslogtreecommitdiff
path: root/README.dialects.rst
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-03-25 16:59:27 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-03-25 16:59:27 -0400
commitc87f6af48cdfb07efa49c407333b642dec2196b1 (patch)
treecc1b92ccab2de75e77a0c5e64bf8bfe060f5eaf7 /README.dialects.rst
parent07c9bc77f7e6a2938d8453c01dd00f1294050933 (diff)
downloadsqlalchemy-c87f6af48cdfb07efa49c407333b642dec2196b1.tar.gz
- add a nose runner that erases out argv, otherwise
you get "import test" as what it tries to run with setup.py test
Diffstat (limited to 'README.dialects.rst')
-rw-r--r--README.dialects.rst8
1 files changed, 7 insertions, 1 deletions
diff --git a/README.dialects.rst b/README.dialects.rst
index 2e1d20db8..26bc1edaf 100644
--- a/README.dialects.rst
+++ b/README.dialects.rst
@@ -112,7 +112,13 @@ Key aspects of this file layout include:
from sqlalchemy.testing import runner
- runner.main()
+ # use this in setup.py 'test_suite':
+ # test_suite="run_tests.setup_py_test"
+ def setup_py_test():
+ runner.setup_py_test()
+
+ if __name__ == '__main__':
+ runner.main()
Where above, the ``registry`` module, introduced in SQLAlchemy 0.8, provides
an in-Python means of installing the dialect entrypoints without the use