summaryrefslogtreecommitdiff
path: root/coverage/env.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-12-25 12:56:31 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-12-25 12:56:31 -0500
commit54e90650ccdc77da50fa7986c1c6128d34229389 (patch)
tree1c9f3b6236df1fbb67ece1c2eda570ac65a89aa0 /coverage/env.py
parentd6072b833eabe93f8bb4f1851cbf0680aa48dff0 (diff)
downloadpython-coveragepy-git-54e90650ccdc77da50fa7986c1c6128d34229389.tar.gz
test: remove pycontracts
Diffstat (limited to 'coverage/env.py')
-rw-r--r--coverage/env.py9
1 files changed, 1 insertions, 8 deletions
diff --git a/coverage/env.py b/coverage/env.py
index 820016f4..f77f22ee 100644
--- a/coverage/env.py
+++ b/coverage/env.py
@@ -130,14 +130,7 @@ METACOV = os.getenv('COVERAGE_COVERAGE', '') != ''
# test-specific behavior like contracts.
TESTING = os.getenv('COVERAGE_TESTING', '') == 'True'
-# Environment COVERAGE_NO_CONTRACTS=1 can turn off contracts while debugging
-# tests to remove noise from stack traces.
-# $set_env.py: COVERAGE_NO_CONTRACTS - Disable PyContracts to simplify stack traces.
-USE_CONTRACTS = (
- TESTING
- and not bool(int(os.environ.get("COVERAGE_NO_CONTRACTS", 0)))
- and (PYVERSION < (3, 11))
-)
+USE_CONTRACTS = False
def debug_info():
"""Return a list of (name, value) pairs for printing debug information."""