Python 3.8 · Issue #126 · python-hyper/wsproto (original) (raw)
Navigation Menu
- Explore
- Pricing
Provide feedback
Saved searches
Use saved searches to filter your results more quickly
Appearance settings
Description
The test suite fails when run with Python 3.8.
=================================== FAILURES ===================================
___________________ TestMessageDecoder.test_not_even_unicode ___________________
self = <test.test_frame_protocol.TestMessageDecoder object at 0x7f758e817bb0>
def test_not_even_unicode(self):
payload = u"fñörd"
payload = payload.encode("iso-8859-1")
decoder = fp.MessageDecoder()
frame = fp.Frame(
opcode=fp.Opcode.TEXT,
payload=payload,
frame_finished=True,
message_finished=False,
)
with pytest.raises(fp.ParseFailed) as excinfo:
> decoder.process_frame(frame)
E Failed: DID NOT RAISE <class 'wsproto.frame_protocol.ParseFailed'>
decoder = <wsproto.frame_protocol.MessageDecoder object at 0x7f758e8179d0>
excinfo = <ExceptionInfo for raises contextmanager>
frame = Frame(opcode=<Opcode.TEXT: 1>, payload=b'f\xf1\xf6rd', frame_finished=True, message_finished=False)
payload = b'f\xf1\xf6rd'
self = <test.test_frame_protocol.TestMessageDecoder object at 0x7f758e817bb0>
test/test_frame_protocol.py:263: Failed
=============================== warnings summary ===============================
test/test_frame_protocol.py:932
/builddir/build/BUILD/wsproto-0.14.1/test/test_frame_protocol.py:932: SyntaxWarning: invalid escape sequence \_
payload = u"¯\_(ツ)_/¯"
test/test_frame_protocol.py:1097
/builddir/build/BUILD/wsproto-0.14.1/test/test_frame_protocol.py:1097: SyntaxWarning: invalid escape sequence \_
reason = u"¯\_(ツ)_/¯"
test/test_frame_protocol.py:1106
/builddir/build/BUILD/wsproto-0.14.1/test/test_frame_protocol.py:1106: SyntaxWarning: invalid escape sequence \_
reason = u"¯\_(ツ)_/¯" * 10
test/test_frame_protocol.py:1129
/builddir/build/BUILD/wsproto-0.14.1/test/test_frame_protocol.py:1129: SyntaxWarning: invalid escape sequence \_
payload = u"¯\_(ツ)_/¯".encode("utf8")
test/test_frame_protocol.py:1140
/builddir/build/BUILD/wsproto-0.14.1/test/test_frame_protocol.py:1140: SyntaxWarning: invalid escape sequence \_
payload = u"¯\_(ツ)_/¯".encode("utf8")
-- Docs: https://docs.pytest.org/en/latest/warnings.html
=============== 1 failed, 238 passed, 5 warnings in 0.78 seconds ===============
Fedora is preparing for Python 3.8 in Fedora 31, which is what alerted me to this failure with my python-wsproto package.