Skip to content

Commit e99780e

Browse files
committed
gh-135056: Change new arg to mock.patch.object to positional instead
1 parent f0d1bac commit e99780e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_httpservers.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ def test_path_without_leading_slash(self):
870870
self.tempdir_name + "/?hi=1")
871871

872872
def test_extra_response_headers_list_dir(self):
873-
with mock.patch.object(self.request_handler, 'extra_response_headers', new=[
873+
with mock.patch.object(self.request_handler, 'extra_response_headers', [
874874
('X-Test1', 'test1'),
875875
('X-Test2', 'test2'),
876876
]):
@@ -879,7 +879,7 @@ def test_extra_response_headers_list_dir(self):
879879
self.assertEqual(response.getheader("X-Test2"), 'test2')
880880

881881
def test_extra_response_headers_get_file(self):
882-
with mock.patch.object(self.request_handler, 'extra_response_headers', new=[
882+
with mock.patch.object(self.request_handler, 'extra_response_headers', [
883883
('Set-Cookie', 'test1=value1'),
884884
('Set-Cookie', 'test2=value2'),
885885
('X-Test1', 'value3'),

0 commit comments

Comments
 (0)