may as well not use lambdas here

This commit is contained in:
Crystal Melting Dot 2021-02-20 22:56:20 +03:00
parent 8a74756ab6
commit eda75f552c

View File

@ -19,7 +19,7 @@ class TestArgsProc(TestCase):
with self.subTest(command=cmd): with self.subTest(command=cmd):
self.assertRaises( self.assertRaises(
exc, exc,
lambda: process_args_for_host_port(cmd, 443) process_args_for_host_port, cmd, 443
) )
def test_host_port(self): def test_host_port(self):
@ -56,7 +56,7 @@ class TestTCPCheckerHandler(TestCase):
with self.subTest(cmd=cmd): with self.subTest(cmd=cmd):
self.assertRaises( self.assertRaises(
exc, exc,
lambda: self.method(cmd) self.method, cmd
) )
def test_host_port(self): def test_host_port(self):