Skip to content

Commit 0d2899a

Browse files
build(deps): bump twisted from 23.10.0 to 24.3.0 (#2337)
1 parent 07efec1 commit 0d2899a

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

local-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ pytest-xdist==3.5.0
1818
requests==2.31.0
1919
service_identity==24.1.0
2020
setuptools==69.1.1
21-
twisted==23.10.0
21+
twisted==24.3.0
2222
types-pyOpenSSL==24.0.0.20240228
2323
types-requests==2.31.0.20240218
2424
wheel==0.41.2

tests/async/test_fetch_browser_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ async def test_fetch_should_work(context: BrowserContext, server: Server) -> Non
5555
async def test_should_throw_on_network_error(
5656
context: BrowserContext, server: Server
5757
) -> None:
58-
server.set_route("/test", lambda request: request.transport.loseConnection())
58+
server.set_route("/test", lambda request: request.loseConnection())
5959
with pytest.raises(Error, match="socket hang up"):
6060
await context.request.fetch(server.PREFIX + "/test")
6161

tests/async/test_har.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -760,7 +760,7 @@ async def test_should_ignore_aborted_requests(
760760
tmpdir: Path,
761761
) -> None:
762762
path = tmpdir / "test.har"
763-
server.set_route("/x", lambda request: request.transport.loseConnection())
763+
server.set_route("/x", lambda request: request.loseConnection())
764764
context1 = await context_factory()
765765
await context1.route_from_har(har=path, update=True)
766766
page1 = await context1.new_page()

tests/async/test_network.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -633,7 +633,7 @@ async def test_network_events_request_failed(
633633
) -> None:
634634
def handle_request(request: TestServerRequest) -> None:
635635
request.setHeader("Content-Type", "text/css")
636-
request.transport.loseConnection()
636+
request.loseConnection()
637637

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

tests/sync/test_fetch_browser_context.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def test_fetch_should_work(context: BrowserContext, server: Server) -> None:
5252

5353

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

0 commit comments

Comments
 (0)