From b8528d0282436eecd7aecc265fd4d2e61feb9e63 Mon Sep 17 00:00:00 2001 From: Steven Joseph Date: Thu, 29 Mar 2018 16:35:14 +1100 Subject: [PATCH] Fix for python3 --- tests.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests.py b/tests.py index fb17a54..0a3c4b7 100644 --- a/tests.py +++ b/tests.py @@ -205,9 +205,9 @@ def testPayloadTooLargeError(self): '.' * (max_raw_payload_bytes + 1)) # Test unicode 2-byte characters payload - Payload(u'\u0100' * int(max_raw_payload_bytes / 2)) + Payload('\\u0100' * int(max_raw_payload_bytes / 2)) self.assertRaises(PayloadTooLargeError, Payload, - u'\u0100' * (int(max_raw_payload_bytes / 2) + 1)) + '\\u0100' * (int(max_raw_payload_bytes / 2) + 1)) if __name__ == '__main__': unittest.main()