[Lldb-commits] [lldb] [lldb][test] Fix type error when calling random.randrange with 'float' arg (PR #97328)

Pavel Labath via lldb-commits lldb-commits at lists.llvm.org
Tue Jul 2 05:41:24 PDT 2024


================
@@ -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)))
----------------
labath wrote:

How about `10**10` ?

(As the "original author" ;), I'm not really sure what happened here. I'm pretty sure I did not write a huge blob of windows-specific code without testing it. It could be that newer python versions got more string about typing or sth...)

https://github.com/llvm/llvm-project/pull/97328


More information about the lldb-commits mailing list