File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -117,4 +117,8 @@ class PYBEHAVIOR:
117
117
# Environment COVERAGE_NO_CONTRACTS=1 can turn off contracts while debugging
118
118
# tests to remove noise from stack traces.
119
119
# $set_env.py: COVERAGE_NO_CONTRACTS - Disable PyContracts to simplify stack traces.
120
- USE_CONTRACTS = TESTING and not bool (int (os .environ .get ("COVERAGE_NO_CONTRACTS" , 0 )))
120
+ USE_CONTRACTS = (
121
+ TESTING
122
+ and not bool (int (os .environ .get ("COVERAGE_NO_CONTRACTS" , 0 )))
123
+ and (PYVERSION < (3 , 11 ))
124
+ )
Original file line number Diff line number Diff line change @@ -30,8 +30,6 @@ setenv =
30
30
# For some tests, we need .pyc files written in the current directory,
31
31
# so override any local setting.
32
32
PYTHONPYCACHEPREFIX =
33
- # PyContracts can't do 3.11.
34
- py311: COVERAGE_NO_CONTRACTS =1
35
33
36
34
commands =
37
35
# Create tests/zipmods.zip
You can’t perform that action at this time.
0 commit comments