Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
another
Browse files Browse the repository at this point in the history
  • Loading branch information
JelleZijlstra committed Aug 21, 2024
1 parent 51c197f commit 3a27d69
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion test/test_hyper.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,12 @@
import brotli
from io import BytesIO

try:
from h2.settings import INITIAL_WINDOW_SIZE
except ImportError:
from h2.settings import SettingCodes
INITIAL_WINDOW_SIZE = SettingCodes.INITIAL_WINDOW_SIZE

TEST_DIR = os.path.abspath(os.path.dirname(__file__))
TEST_CERTS_DIR = os.path.join(TEST_DIR, 'certs')
CLIENT_PEM_FILE = os.path.join(TEST_CERTS_DIR, 'nopassword.pem')
Expand Down Expand Up @@ -766,7 +772,7 @@ def test_incrementing_window_after_close(self):
# the default max frame size (16,384 bytes). That will, on the third
# frame, trigger the processing to increment the flow control window,
# which should then not happen.
f = SettingsFrame(0, settings={h2.settings.INITIAL_WINDOW_SIZE: 100})
f = SettingsFrame(0, settings={INITIAL_WINDOW_SIZE: 100})

c = HTTP20Connection('www.google.com')
c._sock = DummySocket()
Expand Down

0 comments on commit 3a27d69

Please sign in to comment.