From da3dea612249f90218b6112ea18e574662367594 Mon Sep 17 00:00:00 2001 From: Zachary Turner Date: Mon, 26 Oct 2015 16:51:20 +0000 Subject: Python3 - Change sys.maxint to sys.maxsize. Python3 has no analogue to sys.maxint since ints in Python 3 have arbitrary size. However, the distinction was not actually important in any of these cases, and in a few cases using maxint was already a bug to begin with. llvm-svn: 251306 --- lldb/test/python_api/default-constructor/sb_address.py | 2 +- lldb/test/python_api/default-constructor/sb_breakpoint.py | 4 ++-- lldb/test/python_api/default-constructor/sb_module.py | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) (limited to 'lldb/test/python_api') diff --git a/lldb/test/python_api/default-constructor/sb_address.py b/lldb/test/python_api/default-constructor/sb_address.py index 570e224a0de..f0e979543a4 100644 --- a/lldb/test/python_api/default-constructor/sb_address.py +++ b/lldb/test/python_api/default-constructor/sb_address.py @@ -9,7 +9,7 @@ def fuzz_obj(obj): obj.GetFileAddress() obj.GetLoadAddress(lldb.SBTarget()) obj.SetLoadAddress(0xffff, lldb.SBTarget()) - obj.OffsetAddress(sys.maxint) + obj.OffsetAddress(sys.maxsize) obj.GetDescription(lldb.SBStream()) obj.GetSection() obj.GetSymbolContext(lldb.eSymbolContextEverything) diff --git a/lldb/test/python_api/default-constructor/sb_breakpoint.py b/lldb/test/python_api/default-constructor/sb_breakpoint.py index 1efe131bfaa..2c05990edae 100644 --- a/lldb/test/python_api/default-constructor/sb_breakpoint.py +++ b/lldb/test/python_api/default-constructor/sb_breakpoint.py @@ -8,8 +8,8 @@ import lldb def fuzz_obj(obj): obj.GetID() obj.ClearAllBreakpointSites() - obj.FindLocationByAddress(sys.maxint) - obj.FindLocationIDByAddress(sys.maxint) + obj.FindLocationByAddress(sys.maxsize) + obj.FindLocationIDByAddress(sys.maxsize) obj.FindLocationByID(0) obj.GetLocationAtIndex(0) obj.SetEnabled(True) diff --git a/lldb/test/python_api/default-constructor/sb_module.py b/lldb/test/python_api/default-constructor/sb_module.py index 49ceecb09fa..0b9aa99167a 100644 --- a/lldb/test/python_api/default-constructor/sb_module.py +++ b/lldb/test/python_api/default-constructor/sb_module.py @@ -10,11 +10,11 @@ def fuzz_obj(obj): obj.GetPlatformFileSpec() obj.SetPlatformFileSpec(lldb.SBFileSpec()) obj.GetUUIDString() - obj.ResolveFileAddress(sys.maxint) + obj.ResolveFileAddress(sys.maxsize) obj.ResolveSymbolContextForAddress(lldb.SBAddress(), 0) obj.GetDescription(lldb.SBStream()) obj.GetNumSymbols() - obj.GetSymbolAtIndex(sys.maxint) + obj.GetSymbolAtIndex(sys.maxsize) sc_list = obj.FindFunctions("my_func") sc_list = obj.FindFunctions("my_func", lldb.eFunctionNameTypeAny) obj.FindGlobalVariables(lldb.SBTarget(), "my_global_var", 1) -- cgit v1.2.3