[Lldb-commits] [lldb] [lldb][test] Fix type error when calling random.randrange with 'float' arg (PR #97328)
Kendal Harland via lldb-commits
lldb-commits at lists.llvm.org
Wed Jul 3 11:19:45 PDT 2024
https://github.com/kendalharland updated https://github.com/llvm/llvm-project/pull/97328
>From a3c524bebfc976f3dfee5b67dac490ed44705d6a Mon Sep 17 00:00:00 2001
From: kendal <kendal at thebrowser.company>
Date: Wed, 3 Jul 2024 11:18:43 -0700
Subject: [PATCH] Fix type error when calling random.randrange with 'float' arg
---
.../lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
index 5bd352d3ac549..94376a16d39f6 100644
--- a/lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
+++ b/lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py
@@ -1042,7 +1042,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(10**10))
full_name = "\\\\.\\pipe\\" + self.name
self._handle = CreateNamedPipe(
full_name,
More information about the lldb-commits
mailing list