fix #1198 - decoding monkeypatched data to unicode
This commit is contained in:
parent
81ad1689b9
commit
f9b1e39b8a
|
@ -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()
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue