diff --git a/gdb-port/tests/unit/ast.py b/gdb-port/tests/unit/ast.py index b40722809d8892bfe52c4c674ba8bc388520413e..fe82ab4757f1253fabdea7e7b466316836bf39fd 100644 --- a/gdb-port/tests/unit/ast.py +++ b/gdb-port/tests/unit/ast.py @@ -2,18 +2,6 @@ import unittest import unittest.mock class HParseResultCreation(unittest.TestCase): - mocked_hparseresult = None - - @classmethod - def setUpClass(cls): - hpt_patcher = unittest.mock.patch('__main__.HParsedToken', autospec=True) - gdbv_patcher = unittest.mock.patch('gdb.Value', autospec=True) - hpt_patcher.start() - gdbv_patcher.start() - __class__.mocked_hparseresult = HParseResult(0xdeadbeef) - gdbv_patcher.stop() - hpt_patcher.stop() - #def test_valid_address(self): # raise ValueError @@ -21,9 +9,6 @@ class HParseResultCreation(unittest.TestCase): with self.assertRaises(ValueError): res = HParseResult(0) - #TODO: Mocking the read_member method might be needed - #TODO: MagicMock breaks self.token_type comparison - #TODO: mock read_AST_not_null() to return true def test_make_HParsedToken(self): gdbv_patcher = unittest.mock.patch('gdb.Value', autospec=True) hpt_patcher = unittest.mock.patch('__main__.HParsedToken', autospec=True)