projects
/
python
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3a6d752
)
bpo-33873: regrtest: Add warning on -R 1:3 (GH-7736)
author
Pablo Galindo
<Pablogsal@gmail.com>
Sat, 16 Jun 2018 00:20:56 +0000
(
01:20
+0100)
committer
Victor Stinner
<vstinner@redhat.com>
Sat, 16 Jun 2018 00:20:56 +0000
(
02:20
+0200)
regrtest: Add warning when using less than 3 warmup runs like -R 1:3.
Lib/test/libregrtest/main.py
patch
|
blob
|
history
diff --git
a/Lib/test/libregrtest/main.py
b/Lib/test/libregrtest/main.py
index 3429b3726abe90a541467506d568545ab4e5b23c..569d034af1a3389ba254dedb393de89e45636568 100644
(file)
--- a/
Lib/test/libregrtest/main.py
+++ b/
Lib/test/libregrtest/main.py
@@
-462,6
+462,13
@@
class Regrtest:
or self.tests or self.ns.args)):
self.display_header()
+ if self.ns.huntrleaks:
+ warmup, repetitions, _ = self.ns.huntrleaks
+ if warmup < 3:
+ msg = ("WARNING: Running tests with --huntrleaks/-R and less than "
+ "3 warmup repetitions can give false positives!")
+ print(msg, file=sys.stdout, flush=True)
+
if self.ns.randomize:
print("Using random seed", self.ns.random_seed)