# HG changeset patch # User Gregory Szorc # Date 1570218825 14400 # Node ID 9cc55b7437136b550578ef0699bf1cd3317b51da # Parent 5c9c71cde1c92351567a2e651cf05bc736991210 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 diff -r 5c9c71cde1c9 -r 9cc55b743713 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