diff --git a/tests/mocks.py b/tests/mocks.py index 923f47819..d64bdb5b3 100644 --- a/tests/mocks.py +++ b/tests/mocks.py @@ -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