summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-02-06 19:29:55 -0500
committerNed Batchelder <ned@nedbatchelder.com>2021-02-07 17:24:44 -0500
commit6f10e253affa99fd64d3ec6870d4c4264afea95c (patch)
treec285e8e88a25e9a5e8ce6429666b9273ec6aafb8 /tests
parent0fb366beeb41cb3388534105d2a76b2643e47022 (diff)
downloadpython-coveragepy-git-6f10e253affa99fd64d3ec6870d4c4264afea95c.tar.gz
refactor: make all coverage.env uses uniform
Diffstat (limited to 'tests')
-rw-r--r--tests/test_debug.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_debug.py b/tests/test_debug.py
index 16669407..55001c96 100644
--- a/tests/test_debug.py
+++ b/tests/test_debug.py
@@ -9,10 +9,10 @@ import re
import pytest
import coverage
+from coverage import env
from coverage.backward import StringIO
from coverage.debug import filter_text, info_formatter, info_header, short_id, short_stack
from coverage.debug import clipped_repr
-from coverage.env import C_TRACER
from tests.coveragetest import CoverageTest
from tests.helpers import re_line, re_lines
@@ -195,7 +195,7 @@ class DebugTraceTest(CoverageTest):
def test_debug_sys_ctracer(self):
out_lines = self.f1_debug_output(["sys"])
tracer_line = re_line(out_lines, r"CTracer:").strip()
- if C_TRACER:
+ if env.C_TRACER:
expected = "CTracer: available"
else:
expected = "CTracer: unavailable"