File tree 3 files changed +2
-12
lines changed
3 files changed +2
-12
lines changed Original file line number Diff line number Diff line change @@ -132,7 +132,7 @@ class PYBEHAVIOR:
132
132
133
133
# Are we running our test suite?
134
134
# Even when running tests, you can use COVERAGE_TESTING=0 to disable the
135
- # test-specific behavior like contracts .
135
+ # test-specific behavior like AST checking .
136
136
TESTING = os .getenv ('COVERAGE_TESTING' , '' ) == 'True'
137
137
138
138
Original file line number Diff line number Diff line change @@ -91,16 +91,6 @@ def import_third_party(modname):
91
91
return None
92
92
93
93
94
- # We don't use PyContracts anymore, but the @contracts decorators will be
95
- # useful info when it comes time to add type annotations, so keep them as
96
- # dummies for now.
97
- def contract (* args_unused , ** kwargs_unused ):
98
- """Dummy no-op implementation of a decorator with arguments."""
99
- def _decorator (func ):
100
- return func
101
- return _decorator
102
-
103
-
104
94
def nice_pair (pair ):
105
95
"""Make a nice string representation of a pair of numbers.
106
96
Original file line number Diff line number Diff line change @@ -178,7 +178,7 @@ def in_venv_world_fixture(self, venv_world):
178
178
print(sum(colorsys.rgb_to_hls(1, 0, 0)))
179
179
""" )
180
180
181
- self .del_environ ("COVERAGE_TESTING" ) # To avoid needing contracts installed.
181
+ self .del_environ ("COVERAGE_TESTING" ) # To get realistic behavior
182
182
self .set_environ ("COVERAGE_DEBUG_FILE" , "debug_out.txt" )
183
183
self .set_environ ("COVERAGE_DEBUG" , "trace" )
184
184
You can’t perform that action at this time.
0 commit comments