Skip to content

Commit b5c5ab0

Browse files
ggqlqpicnixz
andauthored
Update Lib/test/test_httpservers.py
Co-authored-by: Bénédikt Tran <[email protected]>
1 parent 2f742d9 commit b5c5ab0

File tree

1 file changed

+1
-8
lines changed

1 file changed

+1
-8
lines changed

Lib/test/test_httpservers.py

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1694,14 +1694,7 @@ def test_tls_flag(self, mock_func):
16941694
@mock.patch('http.server.test')
16951695
def test_no_arguments(self, mock_func):
16961696
self.invoke_httpd()
1697-
mock_func.assert_called_once_with(HandlerClass=self.default_handler,
1698-
ServerClass=self.default_server,
1699-
protocol=self.default_protocol,
1700-
port=self.default_port,
1701-
bind=self.default_bind,
1702-
tls_cert=None,
1703-
tls_key=None,
1704-
tls_password=None)
1697+
mock_func.assert_called_once_with(**self.args)
17051698
mock_func.reset_mock()
17061699

17071700
@mock.patch('http.server.test')

0 commit comments

Comments
 (0)