diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-01-17 12:46:20 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2015-01-17 12:46:20 -0500 |
commit | 469b6fabaf78fa0aad485005fd7bc8be7fe27f92 (patch) | |
tree | 7c2af0c81474c55159906c758593ae6e4ae34292 /lib/sqlalchemy/testing/plugin/pytestplugin.py | |
parent | f3a892a3ef666e299107a990bf4eae7ed9a953ae (diff) | |
download | sqlalchemy-469b6fabaf78fa0aad485005fd7bc8be7fe27f92.tar.gz |
- add an exclusion here that helps with the case of 3rd party
test suite redefining an existing test in test_suite
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/pytestplugin.py')
-rw-r--r-- | lib/sqlalchemy/testing/plugin/pytestplugin.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py index 4bbc8ed9a..fbab4966c 100644 --- a/lib/sqlalchemy/testing/plugin/pytestplugin.py +++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py @@ -84,7 +84,8 @@ def pytest_collection_modifyitems(session, config, items): rebuilt_items = collections.defaultdict(list) items[:] = [ item for item in - items if isinstance(item.parent, pytest.Instance)] + items if isinstance(item.parent, pytest.Instance) + and not item.parent.parent.name.startswith("_")] test_classes = set(item.parent for item in items) for test_class in test_classes: for sub_cls in plugin_base.generate_sub_tests( |