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

Commit b1df958

Browse files
committed
SETTINGS frames don't come in on streams.
1 parent 9261e25 commit b1df958

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

test/test_hyper.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,10 @@ def test_settings_frame_parses_properly(self):
187187
SettingsFrame.FLOW_CONTROL_OPTIONS: 1,
188188
}
189189

190+
def test_settings_frames_never_have_streams(self):
191+
with pytest.raises(ValueError):
192+
SettingsFrame(1)
193+
190194

191195
class TestPushPromiseFrame(object):
192196
def test_push_promise_unsupported(self):

0 commit comments

Comments
 (0)