Skip to content

Commit

Permalink
Merge pull request #752 from alexwlchan/yet-more-h2-deprecations
Browse files Browse the repository at this point in the history
A few more h2.errors instances in twisted

Author: alexwlchan
Reviewer: Lukasa
Fixes: ticket:9093
  • Loading branch information
Lukasa authored Mar 23, 2017
2 parents 4a99414 + 62a91dd commit b00178a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
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.

0 comments on commit b00178a

Please sign in to comment.