summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/runner.py
diff options
context:
space:
mode:
authormike bayer <mike_mp@zzzcomputing.com>2019-02-03 17:45:28 +0000
committerGerrit Code Review <gerrit@bbpush.zzzcomputing.com>2019-02-03 17:45:28 +0000
commit2a2f7fe88c66da8ae6490b1ff284ff9ef584abc1 (patch)
tree4ea1794c35a35f48d9bd60c01a35616b969ceed1 /lib/sqlalchemy/testing/runner.py
parent620bfde695079eeab35467086956764616de037c (diff)
parentd427d0643b235ea0f6b50a357bbe5bdb087403c4 (diff)
downloadsqlalchemy-2a2f7fe88c66da8ae6490b1ff284ff9ef584abc1.tar.gz
Merge "Remove Nose support"
Diffstat (limited to 'lib/sqlalchemy/testing/runner.py')
-rw-r--r--lib/sqlalchemy/testing/runner.py50
1 files changed, 0 insertions, 50 deletions
diff --git a/lib/sqlalchemy/testing/runner.py b/lib/sqlalchemy/testing/runner.py
deleted file mode 100644
index ac5ff40c4..000000000
--- a/lib/sqlalchemy/testing/runner.py
+++ /dev/null
@@ -1,50 +0,0 @@
-#!/usr/bin/env python
-# testing/runner.py
-# Copyright (C) 2005-2019 the SQLAlchemy authors and contributors
-# <see AUTHORS file>
-#
-# This module is part of SQLAlchemy and is released under
-# the MIT License: http://www.opensource.org/licenses/mit-license.php
-"""
-Nose test runner module.
-
-This script is a front-end to "nosetests" which
-installs SQLAlchemy's testing plugin into the local environment.
-
-The script is intended to be used by third-party dialects and extensions
-that run within SQLAlchemy's testing framework. The runner can
-be invoked via::
-
- python -m sqlalchemy.testing.runner
-
-The script is then essentially the same as the "nosetests" script, including
-all of the usual Nose options. The test environment requires that a
-setup.cfg is locally present including various required options.
-
-Note that when using this runner, Nose's "coverage" plugin will not be
-able to provide coverage for SQLAlchemy itself, since SQLAlchemy is
-imported into sys.modules before coverage is started. The special
-script sqla_nose.py is provided as a top-level script which loads the
-plugin in a special (somewhat hacky) way so that coverage against
-SQLAlchemy itself is possible.
-
-"""
-
-import nose
-
-from .plugin.noseplugin import NoseSQLAlchemy
-
-
-def main():
- nose.main(addplugins=[NoseSQLAlchemy()])
-
-
-def setup_py_test():
- """Runner to use for the 'test_suite' entry of your setup.py.
-
- Prevents any name clash shenanigans from the command line
- argument "test" that the "setup.py test" command sends
- to nose.
-
- """
- nose.main(addplugins=[NoseSQLAlchemy()], argv=["runner"])