summaryrefslogtreecommitdiff
path: root/tests/test_api.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_api.py')
-rw-r--r--tests/test_api.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_api.py b/tests/test_api.py
index 0a6b71b9..287391cb 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -714,6 +714,14 @@ class ApiTest(CoverageTest):
cov.start()
cov.stop()
+ def test_run_debug_sys(self):
+ # https://github.com/nedbat/coveragepy/issues/907
+ cov = coverage.Coverage()
+ cov.start()
+ d = dict(cov.sys_info()) # pragma: nested
+ cov.stop() # pragma: nested
+ assert d['data_file'].endswith(".coverage")
+
class CurrentInstanceTest(CoverageTest):
"""Tests of Coverage.current()."""