summaryrefslogtreecommitdiff
path: root/tests/test_context.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-04-21 09:49:57 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-04-21 09:49:57 -0400
commitf576188dc66eca4a9891f6d8bd6f8d4d006ee310 (patch)
tree71d7c4ff8de04399005f8596a6eebd0ec1edfe85 /tests/test_context.py
parent7b9c1053bb75eab197acfcec53e9bb6ea7568a0e (diff)
downloadpython-coveragepy-git-f576188dc66eca4a9891f6d8bd6f8d4d006ee310.tar.gz
Check for skipping tests before super.setUp
Diffstat (limited to 'tests/test_context.py')
-rw-r--r--tests/test_context.py4
1 files changed, 2 insertions, 2 deletions
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):