tests: conditionalize output for Python 3
authorGregory Szorc <gregory.szorc@gmail.com>
Fri, 04 Oct 2019 15:53:45 -0400
changeset 43074 9cc55b743713
parent 43073 5c9c71cde1c9
child 43075 57875cf423c9
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
tests/test-upgrade-repo.t
--- 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