# HG changeset patch # User Mads Kiilerich # Date 2020-02-05 23:04:27 # Node ID a455353077c83f88b4e33d4f0dc9c42746b22bb7 # Parent 6e537f0a9961cb1aea11abdb0c323b0585a62b43 py3: automatic migration with 2to3 -f asserts diff --git a/kallithea/tests/vcs/test_git.py b/kallithea/tests/vcs/test_git.py --- a/kallithea/tests/vcs/test_git.py +++ b/kallithea/tests/vcs/test_git.py @@ -343,7 +343,7 @@ class TestGitChangeset(object): start = offset end = limit and offset + limit or None sliced = list(self.repo[start:end]) - pytest.failUnlessEqual(result, sliced, + pytest.assertEqual(result, sliced, msg="Comparison failed for limit=%s, offset=%s" "(get_changeset returned: %s and sliced: %s" % (limit, offset, result, sliced))