summaryrefslogtreecommitdiff
path: root/sqla_nose.py
diff options
context:
space:
mode:
Diffstat (limited to 'sqla_nose.py')
-rwxr-xr-xsqla_nose.py36
1 files changed, 0 insertions, 36 deletions
diff --git a/sqla_nose.py b/sqla_nose.py
deleted file mode 100755
index f5d548ad2..000000000
--- a/sqla_nose.py
+++ /dev/null
@@ -1,36 +0,0 @@
-#!/usr/bin/env python
-"""
-nose runner script.
-
-This script is a front-end to "nosetests" which
-installs SQLAlchemy's testing plugin into the local environment.
-
-"""
-import os
-import sys
-
-import nose
-
-
-if not sys.flags.no_user_site:
- sys.path.insert(
- 0,
- os.path.join(os.path.dirname(os.path.abspath(__file__)), 'lib')
- )
-
-
-# use bootstrapping so that test plugins are loaded
-# without touching the main library before coverage starts
-bootstrap_file = os.path.join(
- os.path.dirname(__file__), "lib", "sqlalchemy",
- "testing", "plugin", "bootstrap.py"
-)
-
-with open(bootstrap_file) as f:
- code = compile(f.read(), "bootstrap.py", 'exec')
- to_bootstrap = "nose"
- exec(code, globals(), locals())
-
-
-from noseplugin import NoseSQLAlchemy # noqa
-nose.main(addplugins=[NoseSQLAlchemy()])