Skip to content

Commit 44981cd

Browse files
fixup! Another attempt at making decimal conversion work
1 parent 4b3786a commit 44981cd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lldb/test/API/functionalities/plugins/python_os_plugin/TestPythonOSPlugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ def get_tid_from_thread_info_command(self, thread, use_backing_thread):
149149
self.assertTrue(result.Succeeded(), "failed to run thread info")
150150
match = self.tid_regex.search(result.GetOutput())
151151
self.assertNotEqual(match, None)
152-
return match.group(1)
152+
return int(match.group(1), 0)
153153

154154
def run_python_os_step(self):
155155
"""Test that the Python operating system plugin works correctly and allows single stepping of a virtual thread that is backed by a real thread"""
@@ -230,7 +230,7 @@ def run_python_os_step(self):
230230
thread.StepOver()
231231

232232
tid_os = self.get_tid_from_thread_info_command(thread, False)
233-
self.assertEqual(tid_os, "0x111111111")
233+
self.assertEqual(tid_os, 0x111111111)
234234
tid_real = self.get_tid_from_thread_info_command(thread, True)
235235
self.assertNotEqual(tid_os, tid_real)
236236

0 commit comments

Comments
 (0)