diff --git a/nnpy/tests.py b/nnpy/tests.py index ba2a3fe..7f9f6e0 100644 --- a/nnpy/tests.py +++ b/nnpy/tests.py @@ -17,7 +17,7 @@ def test_basic(self): poller = nnpy.PollSet((sub, nnpy.POLLIN)) self.assertEqual(len(poller.poll()), 1) self.assertEqual(poller.poll()[0], 1) - self.assertEqual(sub.recv(), 'FLUB') + self.assertEqual(sub.recv().decode(), 'FLUB') self.assertEqual(pub.get_statistic(nnpy.STAT_MESSAGES_SENT), 1) pub.close() sub.shutdown(sub_conn)