Skip to content

Commit

Permalink
build(deps): bump twisted from 23.10.0 to 24.3.0 (#2337)
Browse files Browse the repository at this point in the history
  • Loading branch information
dependabot[bot] authored Mar 5, 2024
1 parent 07efec1 commit 0d2899a
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion local-requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ pytest-xdist==3.5.0
requests==2.31.0
service_identity==24.1.0
setuptools==69.1.1
twisted==23.10.0
twisted==24.3.0
types-pyOpenSSL==24.0.0.20240228
types-requests==2.31.0.20240218
wheel==0.41.2
2 changes: 1 addition & 1 deletion tests/async/test_fetch_browser_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ async def test_fetch_should_work(context: BrowserContext, server: Server) -> Non
async def test_should_throw_on_network_error(
context: BrowserContext, server: Server
) -> None:
server.set_route("/test", lambda request: request.transport.loseConnection())
server.set_route("/test", lambda request: request.loseConnection())
with pytest.raises(Error, match="socket hang up"):
await context.request.fetch(server.PREFIX + "/test")

Expand Down
2 changes: 1 addition & 1 deletion tests/async/test_har.py
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,7 @@ async def test_should_ignore_aborted_requests(
tmpdir: Path,
) -> None:
path = tmpdir / "test.har"
server.set_route("/x", lambda request: request.transport.loseConnection())
server.set_route("/x", lambda request: request.loseConnection())
context1 = await context_factory()
await context1.route_from_har(har=path, update=True)
page1 = await context1.new_page()
Expand Down
2 changes: 1 addition & 1 deletion tests/async/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ async def test_network_events_request_failed(
) -> None:
def handle_request(request: TestServerRequest) -> None:
request.setHeader("Content-Type", "text/css")
request.transport.loseConnection()
request.loseConnection()

server.set_route("/one-style.css", handle_request)

Expand Down
2 changes: 1 addition & 1 deletion tests/sync/test_fetch_browser_context.py
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ def test_fetch_should_work(context: BrowserContext, server: Server) -> None:


def test_should_throw_on_network_error(context: BrowserContext, server: Server) -> None:
server.set_route("/test", lambda request: request.transport.loseConnection())
server.set_route("/test", lambda request: request.loseConnection())
with pytest.raises(Error, match="socket hang up"):
context.request.fetch(server.PREFIX + "/test")

Expand Down

0 comments on commit 0d2899a

Please sign in to comment.