summaryrefslogtreecommitdiff
path: root/testing/test_pastebin.py
diff options
context:
space:
mode:
authormehdy <mehdy.khoshnoody@gmail.com>2015-11-29 19:42:50 +0330
committermehdy <mehdy.khoshnoody@gmail.com>2015-11-29 19:42:50 +0330
commitf9b1e39b8a51f6f0b65c10ed05cf4311c6aeafca (patch)
tree06d5c9c814dd6dd91f185f1fabb0f760a230596f /testing/test_pastebin.py
parent81ad1689b9961973c66d8454c03fe283b1973725 (diff)
downloadpytest-f9b1e39b8a51f6f0b65c10ed05cf4311c6aeafca.tar.gz
fix #1198 - decoding monkeypatched data to unicode
Diffstat (limited to 'testing/test_pastebin.py')
-rw-r--r--testing/test_pastebin.py6
1 files 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()