mirror of
https://github.com/intel/llvm.git
synced 2026-01-19 01:15:50 +08:00
[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>
This commit is contained in:
@@ -1042,7 +1042,7 @@ if lldbplatformutil.getHostPlatform() == "windows":
|
||||
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,
|
||||
|
||||
Reference in New Issue
Block a user