From 3fcbf7179b5648aeef60aebdf32fc32b78475c23 Mon Sep 17 00:00:00 2001 From: Pavol Rusnak Date: Mon, 15 May 2017 19:12:12 +0200 Subject: [PATCH] remove trezor.debug usage --- src/apps/debug/__init__.py | 10 ++-------- tests/test_trezor.debug.py | 13 ------------- 2 files changed, 2 insertions(+), 21 deletions(-) delete mode 100644 tests/test_trezor.debug.py diff --git a/src/apps/debug/__init__.py b/src/apps/debug/__init__.py index 3648d1a601..a96530b51a 100644 --- a/src/apps/debug/__init__.py +++ b/src/apps/debug/__init__.py @@ -41,14 +41,8 @@ async def dispatch_DebugLinkStop(session_id, msg): async def dispatch_DebugLinkMemoryRead(session_id, msg): - from trezor.messages.DebugLinkMemory import DebugLinkMemory - from trezor.debug import memaccess - - length = min(msg.length, 1024) - m = DebugLinkMemory() - m.memory = memaccess(msg.address, length) - - return m + # TODO: return memaccess(msg.address, msg.length) + pass async def dispatch_DebugLinkMemoryWrite(session_id, msg): diff --git a/tests/test_trezor.debug.py b/tests/test_trezor.debug.py deleted file mode 100644 index ebb2444420..0000000000 --- a/tests/test_trezor.debug.py +++ /dev/null @@ -1,13 +0,0 @@ -from common import * - -from trezor import debug - -class TestDebug(unittest.TestCase): - - def test_memaccess(self): - data = debug.memaccess(0, 1024) - # don't access contents (will segfault), just the length of the returned data - self.assertEqual(len(data), 1024) - -if __name__ == '__main__': - unittest.main()