changeset 43074:9cc55b743713

tests: conditionalize output for Python 3 It appears that the random.randint() behavior is different between Python 2 and Python 3. So make the test conditional on that. This makes the test pass on Python 3.7 (and presumably other Python 3 versions). Differential Revision: https://phab.mercurial-scm.org/D6964
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 04 Oct 2019 15:53:45 -0400
parents 5c9c71cde1c9
children 57875cf423c9
files tests/test-upgrade-repo.t
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/tests/test-upgrade-repo.t	Sat Oct 05 17:01:02 2019 -0400
+++ b/tests/test-upgrade-repo.t	Fri Oct 04 15:53:45 2019 -0400
@@ -617,7 +617,8 @@
 Check that the repo still works fine
 
   $ hg log -G --stat
-  @  changeset:   2:76d4395f5413
+  @  changeset:   2:76d4395f5413 (no-py3 !)
+  @  changeset:   2:fca376863211 (py3 !)
   |  tag:         tip
   |  parent:      0:ba592bf28da2
   |  user:        test