From f9b1e39b8a51f6f0b65c10ed05cf4311c6aeafca Mon Sep 17 00:00:00 2001 From: mehdy Date: Sun, 29 Nov 2015 19:42:50 +0330 Subject: [PATCH] fix #1198 - decoding monkeypatched data to unicode --- testing/test_pastebin.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/testing/test_pastebin.py b/testing/test_pastebin.py index 1b5fb1dca..70485fbba 100644 --- a/testing/test_pastebin.py +++ b/testing/test_pastebin.py @@ -80,8 +80,8 @@ class TestPaste: url, data = mocked_urlopen[0] lexer = 'python3' if sys.version_info[0] == 3 else 'python' assert url == 'https://bpaste.net' - assert 'lexer=%s' % lexer in data - assert 'code=full-paste-contents' in data - assert 'expiry=1week' in data + assert 'lexer=%s' % lexer in data.decode() + assert 'code=full-paste-contents' in data.decode() + assert 'expiry=1week' in data.decode()