File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -98,7 +98,7 @@ def __init__(
98
98
self .context_processors = context_processors or []
99
99
if directory is not None :
100
100
self .env = self ._create_env (directory , ** env_options )
101
- elif env is not None :
101
+ elif env is not None : # pragma: no branch
102
102
self .env = env
103
103
104
104
self ._setup_env_defaults (self .env )
Original file line number Diff line number Diff line change @@ -103,7 +103,7 @@ async def accept(
103
103
) -> None :
104
104
headers = headers or []
105
105
106
- if self .client_state == WebSocketState .CONNECTING :
106
+ if self .client_state == WebSocketState .CONNECTING : # pragma: no branch
107
107
# If we haven't yet seen the 'connect' message, then wait for it first.
108
108
await self .receive ()
109
109
await self .send ({"type" : "websocket.accept" , "subprotocol" : subprotocol , "headers" : headers })
You can’t perform that action at this time.
0 commit comments