Skip to content

Commit

Permalink
Fix missing gc mock
Browse files Browse the repository at this point in the history
  • Loading branch information
xs5871 committed Dec 29, 2023
1 parent b778dda commit eef8bc6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions tests/mocks.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ def init_circuit_python_modules_mocks():
sys.modules['board'] = Mock()
sys.modules['storage'] = Mock()

sys.modules['gc'] = Mock()
sys.modules['gc'].mem_alloc = lambda: 0
sys.modules['gc'].mem_free = lambda: 0

sys.modules['keypad'] = Mock()
sys.modules['keypad'].Event = KeyEvent

Expand Down

0 comments on commit eef8bc6

Please sign in to comment.