Closed cfcfs closed 5 months ago
Fix a RecursionError: maximum recursion depth exceeded in comparison happening while running tests with code coverage enabled.
RecursionError: maximum recursion depth exceeded in comparison
.venv/lib/python3.11/site-packages/boa/contracts/vyper/vyper_contract.py:1007: in __call__ computation = self.env.execute_code( .venv/lib/python3.11/site-packages/boa/environment.py:709: in execute_code self._hook_trace_computation(ret, contract) .venv/lib/python3.11/site-packages/boa/environment.py:726: in _hook_trace_computation self._hook_trace_computation(computation, child_contract) .venv/lib/python3.11/site-packages/boa/environment.py:726: in _hook_trace_computation self._hook_trace_computation(computation, child_contract) .venv/lib/python3.11/site-packages/boa/environment.py:726: in _hook_trace_computation self._hook_trace_computation(computation, child_contract) E RecursionError: maximum recursion depth exceeded in comparison !!! Recursion detected (same locals & position)
_hook_trace_computation
The test (tests/unitary/test_coverage.py) should pass with the fix and fail without it
tests/unitary/test_coverage.py
nice catch. thanks for the fix!
What I did
Fix a
RecursionError: maximum recursion depth exceeded in comparison
happening while running tests with code coverage enabled.How I did it
_hook_trace_computation
How to verify it
The test (
tests/unitary/test_coverage.py
) should pass with the fix and fail without itDescription for the changelog
Cute Animal Picture