Skip to content

Commit

Permalink
fix(test): encode mock conn responses
Browse files Browse the repository at this point in the history
  • Loading branch information
ssube committed Dec 26, 2019
1 parent efa6694 commit b8da77b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion tests/test_registry.py
Expand Up @@ -15,7 +15,7 @@ def test_render(self):
pm.Metric('foo', 'foo counts', registry=r)

lines = r.render()
self.assertEquals(lines, [
self.assertEqual(lines, [
'# HELP foo foo counts',
'# TYPE foo untyped',
])
2 changes: 1 addition & 1 deletion tests/test_server.py
Expand Up @@ -14,7 +14,7 @@ def recv(self, n):
print('recv', n)
self.buffer = self.body[self.index : self.index + n]
self.index += n
return self.buffer
return self.buffer.encode('utf-8')

def send(self, chunk):
self.accum.append(chunk)
Expand Down

0 comments on commit b8da77b

Please sign in to comment.