Skip to content

Commit

Permalink
pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
attdona committed Oct 1, 2017
1 parent e606723 commit cf2510d
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions burba/tests/test_memory.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
"""simple test demostrating the test machinery: test dynamic memory allocation
"""
import functools

# the firmware test machinery
Expand All @@ -6,12 +8,12 @@
# import firmware configuration
from tc import fw_deploy_ctx

events = (
EVENTS = (
('pointer_addr: ([x0-9a-f]+)', 'POINTER_ADDR'),
)


def handle_event(obj, event, uart):
def handle_event(obj, event, _):
"""Check that memory address has a constant value after each malloc/free cycle
"""
if (event.name == 'POINTER_ADDR'):
Expand All @@ -23,8 +25,10 @@ def handle_event(obj, event, uart):


def test_malloc_and_free():
"""start memory test
"""

obj = {}

handler = functools.partial(handle_event, obj)
iot.run('memory', fw_deploy_ctx, events=events, handler=handler)
iot.run('memory', fw_deploy_ctx, events=EVENTS, handler=handler)

0 comments on commit cf2510d

Please sign in to comment.