summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2014-03-03 13:41:38 -0500
committerMike Bayer <mike_mp@zzzcomputing.com>2014-03-03 13:41:38 -0500
commit23d9778514fef648285010a36009fca9bb953cad (patch)
tree1695aae012dc71a3b4d05fa0ef194d545e3c0127 /lib
parenta203233a1196496499c1518242dcafd95d297796 (diff)
downloadsqlalchemy-23d9778514fef648285010a36009fca9bb953cad.tar.gz
figure out module location a bit better
Diffstat (limited to 'lib')
-rw-r--r--lib/sqlalchemy/testing/plugin/pytestplugin.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py
index 841029751..0576ba6c5 100644
--- a/lib/sqlalchemy/testing/plugin/pytestplugin.py
+++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py
@@ -2,6 +2,7 @@ import pytest
import argparse
import inspect
from . import plugin_base
+import collections
def pytest_addoption(parser):
group = parser.getgroup("sqlalchemy")
@@ -27,7 +28,6 @@ def pytest_configure(config):
plugin_base.post_begin()
-import collections
def pytest_collection_modifyitems(session, config, items):
# look for all those classes that specify __multiple__ and
# expand them out into per-database test cases.
@@ -68,11 +68,8 @@ def pytest_collection_modifyitems(session, config, items):
)
+
def pytest_pycollect_makeitem(collector, name, obj):
- # how come if I catch "Module" objects here directly
- # and return [] for those I don't want,
- # that doesn't seem to change the results? I need to filter
- # modules after I get the individual functions...
if inspect.isclass(obj) and plugin_base.want_class(obj):
return pytest.Class(name, parent=collector)