diff tests/test-summary.py @ 165:dbb21a4c0eb9 1.8

tests: fix test-summary for python3 We get back bytes, not str. Sorry about that.
author Julien Cristau <julien.cristau@logilab.fr>
date Tue, 01 Sep 2015 10:07:43 +0200
parents 568bca4ff58e
children 9062a6b935ad
line wrap: on
line diff
--- 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)