From 2469b651e61066dd63a0c60d7eeb7cfce16c2ee5 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 3 Mar 2014 18:43:28 -0500 Subject: fix the profiling ids here --- lib/sqlalchemy/testing/plugin/pytestplugin.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/sqlalchemy/testing/plugin/pytestplugin.py') 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): -- cgit v1.2.1