From f576188dc66eca4a9891f6d8bd6f8d4d006ee310 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sun, 21 Apr 2019 09:49:57 -0400 Subject: Check for skipping tests before super.setUp --- tests/test_context.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tests/test_context.py') diff --git a/tests/test_context.py b/tests/test_context.py index e5ab4800..f34a1062 100644 --- a/tests/test_context.py +++ b/tests/test_context.py @@ -112,10 +112,10 @@ class DynamicContextTest(CoverageTest): """Tests of dynamically changing contexts.""" def setUp(self): - super(DynamicContextTest, self).setUp() - self.skip_unless_data_storage_is("sql") if not env.C_TRACER: self.skipTest("Only the C tracer supports dynamic contexts") + super(DynamicContextTest, self).setUp() + self.skip_unless_data_storage_is("sql") SOURCE = """\ def helper(lineno): -- cgit v1.2.1