Skip to content

Commit 857700f

Browse files
kendalharlandkendal
and
kendal
authored
[lldb][test] Fix type error when calling random.randrange with 'float' arg (#97328)
This test only runs on Windows and fails because we're passing a literal of the wrong type to random.randrange. Co-authored-by: kendal <kendal@thebrowser.company>
1 parent d6fb899 commit 857700f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lldb/packages/Python/lldbsuite/test/tools/lldb-server/lldbgdbserverutils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1042,7 +1042,7 @@ def __init__(self):
10421042
class Pipe(object):
10431043
def __init__(self, prefix):
10441044
while True:
1045-
self.name = "lldb-" + str(random.randrange(1e10))
1045+
self.name = "lldb-" + str(random.randrange(10**10))
10461046
full_name = "\\\\.\\pipe\\" + self.name
10471047
self._handle = CreateNamedPipe(
10481048
full_name,

0 commit comments

Comments
 (0)