summaryrefslogtreecommitdiff
path: root/lib/sqlalchemy/testing/plugin/pytestplugin.py
diff options
context:
space:
mode:
Diffstat (limited to 'lib/sqlalchemy/testing/plugin/pytestplugin.py')
-rw-r--r--lib/sqlalchemy/testing/plugin/pytestplugin.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/sqlalchemy/testing/plugin/pytestplugin.py b/lib/sqlalchemy/testing/plugin/pytestplugin.py
index 352cbbd5f..c51768567 100644
--- a/lib/sqlalchemy/testing/plugin/pytestplugin.py
+++ b/lib/sqlalchemy/testing/plugin/pytestplugin.py
@@ -112,7 +112,9 @@ def pytest_runtest_teardown(item):
test_teardown(item)
def test_setup(item):
- id_ = "%s.%s:%s" % (item.parent.module.__name__, item.parent.name, item.name)
+ # like a nose id, e.g.:
+ # "test.aaa_profiling.test_compiler.CompileTest.test_update_whereclause"
+ id_ = "%s.%s.%s" % (item.parent.module.__name__, item.parent.cls.__name__, item.name)
plugin_base.before_test(item, id_)
def test_teardown(item):