# HG changeset patch # User Julien Cristau # Date 1441094863 -7200 # Node ID dbb21a4c0eb914b454aa461a7e70504239bbc6ba # Parent 568bca4ff58e0ac906091e3b066966562bdf5753 tests: fix test-summary for python3 We get back bytes, not str. Sorry about that. diff -r 568bca4ff58e -r dbb21a4c0eb9 tests/test-summary.py --- a/tests/test-summary.py Mon Aug 31 09:52:34 2015 +0200 +++ b/tests/test-summary.py Tue Sep 01 10:07:43 2015 +0200 @@ -20,7 +20,7 @@ b('commit') : True, b('update') : 0} if self.client.version >= (3, 5): - d[b('phases')] = '1 draft' + d[b('phases')] = b('1 draft') self.assertEquals(self.client.summary(), d) @@ -34,7 +34,7 @@ b('commit') : False, b('update') : 0} if self.client.version >= (3, 5): - d[b('phases')] = '1 draft' + d[b('phases')] = b('1 draft') self.assertEquals(self.client.summary(), d) @@ -50,7 +50,7 @@ b('commit') : True, b('update') : 1} if self.client.version >= (3, 5): - d[b('phases')] = '2 draft' + d[b('phases')] = b('2 draft') self.assertEquals(self.client.summary(), d) @@ -97,7 +97,7 @@ tags = b('tip') d[b('parent')] = [(1, node[:12], tags, b('second in other'))] if self.client.version >= (3, 5): - d[b('phases')] = '1 draft' + d[b('phases')] = b('1 draft') self.assertEquals(other.summary(remote=True), d) @@ -120,6 +120,6 @@ b('commit') : False, b('update') : 0} if self.client.version >= (3, 5): - d[b('phases')] = '3 draft' + d[b('phases')] = b('3 draft') self.assertEquals(self.client.summary(), d)