From b418d85a5af120987bfc72b626c9978675e855d0 Mon Sep 17 00:00:00 2001 From: Clement Rouault Date: Fri, 21 Apr 2017 17:39:05 +0200 Subject: [PATCH] Fix test_exe_in_module_list for python 64b --- windows/test/test_debugger.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/windows/test/test_debugger.py b/windows/test/test_debugger.py index 2c69c02..5ee7b81 100644 --- a/windows/test/test_debugger.py +++ b/windows/test/test_debugger.py @@ -687,9 +687,9 @@ class DebuggerTestCase(unittest.TestCase): def test_exe_in_module_list(self): class MyDbg(windows.debug.Debugger): def on_exception(self, exception): - exe_name = self.current_process.peb.modules[0].name + exename = os.path.basename(calc.peb.imagepath.str) this_process_modules = self._module_by_process[self.current_process.pid] - TEST_CASE.assertIn(exe_name, this_process_modules.keys()) + TEST_CASE.assertIn(exename, this_process_modules.keys()) self.current_process.exit() TEST_CASE = self