8000 remove unnecessary lambda · adamchainz/sentry-python@605ca7d · GitHub
[go: up one dir, main page]

Skip to content

Commit 605ca7d

Browse files
committed
remove unnecessary lambda
1 parent 0b7fcbb commit 605ca7d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/integrations/stdlib/test_httplib.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ def test_httplib_misuse(sentry_init, capture_events, request):
8383
conn = HTTPSConnection("httpbin.org", 443)
8484

8585
# make sure we release the resource, even if the test fails
86-
request.addfinalizer(lambda: conn.close())
86+
request.addfinalizer(conn.close)
8787

8888
conn.request("GET", "/anything/foo")
8989

0 commit comments

Comments
 (0)
0