Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#9093] A few more h2.errors instances in twisted #752

Merged
merged 1 commit into from
Mar 23, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 6 additions & 6 deletions src/twisted/web/test/test_http2.py
Original file line number Diff line number Diff line change
Expand Up @@ -2060,7 +2060,7 @@ def test_dataAndRstStream(self):
del frames[-1]
frames.append(
frameFactory.buildRstStreamFrame(
streamID=1, errorCode=h2.errors.INTERNAL_ERROR
streamID=1, errorCode=h2.errors.ErrorCodes.INTERNAL_ERROR
)
)

Expand Down Expand Up @@ -2394,7 +2394,7 @@ def prepareAbortTest(self, abortTimeout=_DEFAULT):
self.assertTimedOut(
transport.value(),
frameCount=2,
errorCode=h2.errors.NO_ERROR,
errorCode=h2.errors.ErrorCodes.NO_ERROR,
lastStreamID=0
)
self.assertTrue(transport.disconnecting)
Expand Down Expand Up @@ -2431,7 +2431,7 @@ def test_timeoutAfterInactivity(self):
self.assertTimedOut(
transport.value(),
frameCount=2,
errorCode=h2.errors.NO_ERROR,
errorCode=h2.errors.ErrorCodes.NO_ERROR,
lastStreamID=0
)
self.assertTrue(transport.disconnecting)
Expand Down Expand Up @@ -2465,7 +2465,7 @@ def test_timeoutResetByData(self):
self.assertTimedOut(
transport.value(),
frameCount=2,
errorCode=h2.errors.NO_ERROR,
errorCode=h2.errors.ErrorCodes.NO_ERROR,
lastStreamID=0
)
self.assertTrue(transport.disconnecting)
Expand All @@ -2474,7 +2474,7 @@ def test_timeoutResetByData(self):
def test_timeoutWithProtocolErrorIfStreamsOpen(self):
"""
When a L{H2Connection} times out with active streams, the error code
returned is L{h2.errors.PROTOCOL_ERROR}.
returned is L{h2.errors.ErrorCodes.PROTOCOL_ERROR}.
"""
frameFactory = FrameFactory()
frames = buildRequestFrames(self.getRequestHeaders, [], frameFactory)
Expand All @@ -2491,7 +2491,7 @@ def test_timeoutWithProtocolErrorIfStreamsOpen(self):
self.assertTimedOut(
transport.value(),
frameCount=2,
errorCode=h2.errors.PROTOCOL_ERROR,
errorCode=h2.errors.ErrorCodes.PROTOCOL_ERROR,
lastStreamID=1
)
self.assertTrue(transport.disconnecting)
Expand Down
Empty file.