summaryrefslogtreecommitdiffstats
path: root/lldb/test/python_api
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2015-10-26 16:51:20 +0000
committerZachary Turner <zturner@google.com>2015-10-26 16:51:20 +0000
commitda3dea612249f90218b6112ea18e574662367594 (patch)
tree5d5dbebb1db5b59fd9f25700c636634a6a98d867 /lldb/test/python_api
parentf67f7e31e7231c488d29a36b31c2725ad86acdb6 (diff)
downloadbcm5719-llvm-da3dea612249f90218b6112ea18e574662367594.tar.gz
bcm5719-llvm-da3dea612249f90218b6112ea18e574662367594.zip
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
Diffstat (limited to 'lldb/test/python_api')
-rw-r--r--lldb/test/python_api/default-constructor/sb_address.py2
-rw-r--r--lldb/test/python_api/default-constructor/sb_breakpoint.py4
-rw-r--r--lldb/test/python_api/default-constructor/sb_module.py4
3 files changed, 5 insertions, 5 deletions
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)
OpenPOWER on IntegriCloud