fix tests on py2
This commit is contained in:
parent
a41ff4c471
commit
e93ffa3a6c
1 changed files with 1 additions and 3 deletions
|
@ -353,9 +353,7 @@ class MainTestCase(utils.TestCase):
|
||||||
self.assertEquals(actual, expected)
|
self.assertEquals(actual, expected)
|
||||||
|
|
||||||
log_output = u("\n").join([u(' ').join(x) for x in logs.actual()])
|
log_output = u("\n").join([u(' ').join(x) for x in logs.actual()])
|
||||||
expected = "u'response_code': 400"
|
expected = "'response_code': 400"
|
||||||
if is_py3:
|
|
||||||
expected = "'response_code': 400"
|
|
||||||
self.assertIn(expected, log_output)
|
self.assertIn(expected, log_output)
|
||||||
|
|
||||||
self.assertHeartbeatNotSavedOffline()
|
self.assertHeartbeatNotSavedOffline()
|
||||||
|
|
Loading…
Reference in a new issue