[Lldb-commits] [lldb] Fix type error when calling random.randrange with 'float' arg (PR #97328)
via lldb-commits
lldb-commits at lists.llvm.org
Mon Jul 1 10:36:07 PDT 2024
llvmbot wrote:
<!--LLVM PR SUMMARY COMMENT-->
@llvm/pr-subscribers-lldb
Author: Kendal Harland (kendalharland)
<details>
<summary>Changes</summary>
This test only runs on Windows and fails because we're passing a literal of the wrong type to random.randrange.
---
Full diff: https://github.com/llvm/llvm-project/pull/97328.diff
1 Files Affected:
- (modified) lldb/test/API/tools/lldb-server/commandline/TestGdbRemoteConnection.py (+1-1)
``````````diff
diff --git a/lldb/test/API/tools/lldb-server/commandline/TestGdbRemoteConnection.py b/lldb/test/API/tools/lldb-server/commandline/TestGdbRemoteConnection.py
index 853b7ad5ef290..f31a57b767c72 100644
--- a/lldb/test/API/tools/lldb-server/commandline/TestGdbRemoteConnection.py
+++ b/lldb/test/API/tools/lldb-server/commandline/TestGdbRemoteConnection.py
@@ -75,7 +75,7 @@ def __init__(self):
class Pipe(object):
def __init__(self, prefix):
while True:
- self.name = "lldb-" + str(random.randrange(1e10))
+ self.name = "lldb-" + str(random.randrange(int(1e10)))
full_name = "\\\\.\\pipe\\" + self.name
self._handle = CreateNamedPipe(
full_name,
``````````
</details>
https://github.com/llvm/llvm-project/pull/97328
More information about the lldb-commits
mailing list