Skip to content
This repository was archived by the owner on Jan 13, 2021. It is now read-only.

Commit 82c3e87

Browse files
committed
PRIORITY frames need streams.
1 parent db0ec0a commit 82c3e87

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

test/test_hyper.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -96,6 +96,9 @@ def test_priority_frame_parses_properly(self):
9696
assert f.flags == set()
9797
assert f.priority == 0xFF
9898

99+
def test_priority_frame_comes_on_a_stream(self):
100+
with pytest.raises(ValueError):
101+
PriorityFrame(0)
99102

100103
class TestRstStreamFrame(object):
101104
def test_rst_stream_frame_has_no_flags(self):

0 commit comments

Comments
 (0)