From f5781ed20e0d3d03e866aa59e2b69d1b20dfe0e6 Mon Sep 17 00:00:00 2001
From: pompolic <pompolic@special-circumstanc.es>
Date: Wed, 6 Jul 2022 20:53:37 +0200
Subject: [PATCH] Cleanup

---
 gdb-port/tests/unit/ast.py | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/gdb-port/tests/unit/ast.py b/gdb-port/tests/unit/ast.py
index b407228..fe82ab4 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)
-- 
GitLab