Submitter | phabricator |
---|---|
Date | July 18, 2019, 6:24 p.m. |
Message ID | <differential-rev-PHID-DREV-rzytgoj5utc3wbndftkw-req@mercurial-scm.org> |
Download | mbox | patch |
Permalink | /patch/40975/ |
State | Superseded |
Headers | show |
Comments
This revision is now accepted and ready to land. martinvonz added a comment. martinvonz accepted this revision. Heh, I wrote a patch for this before I saw yours. The problem is that `random.sample()` (and other integer-based functions) changed, see https://bugs.python.org/issue27742. REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D6658/new/ REVISION DETAIL https://phab.mercurial-scm.org/D6658 To: durin42, #hg-reviewers, martinvonz Cc: martinvonz, mjpieters, mercurial-devel
martinvonz added inline comments. INLINE COMMENTS > test-setdiscovery.t:988 > + query 5; still undecided: 185, sample size is: 185 (no-py3 !) > + query 5; still undecided: 187, sample size is: 185 (py3 !) > 5 total queries in *.????s (glob) Fixing this in flight to be 187 in both places :) REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D6658/new/ REVISION DETAIL https://phab.mercurial-scm.org/D6658 To: durin42, #hg-reviewers, martinvonz Cc: martinvonz, mjpieters, mercurial-devel
martinvonz added inline comments. INLINE COMMENTS > martinvonz wrote in test-setdiscovery.t:988 > Fixing this in flight to be 187 in both places :) But then the old commit was accepted, so the bad version is now public. I'll send a fix instead. REPOSITORY rHG Mercurial CHANGES SINCE LAST ACTION https://phab.mercurial-scm.org/D6658/new/ REVISION DETAIL https://phab.mercurial-scm.org/D6658 To: durin42, #hg-reviewers, martinvonz Cc: martinvonz, mjpieters, mercurial-devel
Patch
diff --git a/tests/test-setdiscovery.t b/tests/test-setdiscovery.t --- a/tests/test-setdiscovery.t +++ b/tests/test-setdiscovery.t @@ -980,10 +980,12 @@ query 3; still undecided: 980, sample size is: 200 sampling from both directions searching: 4 queries - query 4; still undecided: 435, sample size is: 210 + query 4; still undecided: 435, sample size is: 210 (no-py3 !) + query 4; still undecided: 430, sample size is: 210 (py3 !) sampling from both directions searching: 5 queries - query 5; still undecided: 185, sample size is: 185 + query 5; still undecided: 185, sample size is: 185 (no-py3 !) + query 5; still undecided: 187, sample size is: 185 (py3 !) 5 total queries in *.????s (glob) elapsed time: * seconds (glob) heads summary: