From 4c61875aa19ee622d0b90a9c4028ca6666e2aa44 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sat, 13 Nov 2010 11:26:05 -0500 Subject: [PATCH] - nose3 seems to support "addplugins" now - add a note about sqla_nose.py --- README.unittests | 10 ++++++++++ sqla_nose.py | 11 +---------- 2 files changed, 11 insertions(+), 10 deletions(-) diff --git a/README.unittests b/README.unittests index ca76997435..6b2320907d 100644 --- a/README.unittests +++ b/README.unittests @@ -68,6 +68,16 @@ intersesting: $ nosetests -v +ALTERNATE TEST RUNNER +--------------------- + +The script "sqla_nose.py" is a front-end to Nose which manually associates +the SQLAlchemy testing plugin with Nose at runtime. This script can run the +tests without any reliance upon setuptools. In 0.7 we'll be removing the +Nose plugin from setup, so this will be the way going forward to run tests: + + $ python sqla_nose.py -v + RUNNING INDIVIDUAL TESTS ------------------------- Any directory of test modules can be run at once by specifying the directory diff --git a/sqla_nose.py b/sqla_nose.py index ab329fd3fc..302fb5b087 100755 --- a/sqla_nose.py +++ b/sqla_nose.py @@ -5,7 +5,6 @@ nose runner script. This script is a front-end to "nosetests" which doesn't require that SQLA's testing plugin be installed via setuptools. - """ import sys @@ -18,13 +17,5 @@ except ImportError: import nose - if __name__ == '__main__': - py3k = getattr(sys, 'py3kwarning', False) or sys.version_info >= (3, 0) - if py3k: - # this version breaks verbose output, - # but is the only API that nose3 currently supports - nose.main(plugins=[NoseSQLAlchemy()]) - else: - # this is the "correct" API - nose.main(addplugins=[NoseSQLAlchemy()]) + nose.main(addplugins=[NoseSQLAlchemy()]) -- 2.47.2