tests: Fix timeout assertion for py36, py37
The kwargs property was introduced in py38. Change-Id: Id380fee6a2131bf88baa27145c8158277eef10c1
This commit is contained in:
parent
90f565009a
commit
9331880e73
@ -2498,7 +2498,7 @@ class TestTimeoutOption(unittest.TestCase):
|
||||
connection.reset_mock()
|
||||
with self.subTest(timeout=timeout):
|
||||
swiftclient.shell.main(["", "stat", "--timeout", timeout])
|
||||
self.assertEqual(connection.mock_calls[0].kwargs['timeout'],
|
||||
self.assertEqual(connection.mock_calls[0][2]['timeout'],
|
||||
expected)
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user