diff options
author | Nathaniel Manista <nathaniel@google.com> | 2016-12-13 02:56:41 +0000 |
---|---|---|
committer | Nathaniel Manista <nathaniel@google.com> | 2016-12-13 02:56:41 +0000 |
commit | 1de3914d69f90969114dc6e73d34d1e6d4bc2ae6 (patch) | |
tree | be0d5d1e7f59b933564c2c8523752837c6a2afd2 /src/python/grpcio_tests/tests/unit/beta | |
parent | 91764921bc25f695bf2ce75904fe7a69f552203e (diff) |
Style fix: pass keyword arguments by keyword
Diffstat (limited to 'src/python/grpcio_tests/tests/unit/beta')
-rw-r--r-- | src/python/grpcio_tests/tests/unit/beta/_utilities_test.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/python/grpcio_tests/tests/unit/beta/_utilities_test.py b/src/python/grpcio_tests/tests/unit/beta/_utilities_test.py index b955756b6b..9cce96cc85 100644 --- a/src/python/grpcio_tests/tests/unit/beta/_utilities_test.py +++ b/src/python/grpcio_tests/tests/unit/beta/_utilities_test.py @@ -66,7 +66,7 @@ class ChannelConnectivityTest(unittest.TestCase): ready_future = utilities.channel_ready_future(channel) ready_future.add_done_callback(callback.accept_value) with self.assertRaises(future.TimeoutError): - ready_future.result(test_constants.SHORT_TIMEOUT) + ready_future.result(timeout=test_constants.SHORT_TIMEOUT) self.assertFalse(ready_future.cancelled()) self.assertFalse(ready_future.done()) self.assertTrue(ready_future.running()) @@ -88,7 +88,7 @@ class ChannelConnectivityTest(unittest.TestCase): ready_future = utilities.channel_ready_future(channel) ready_future.add_done_callback(callback.accept_value) self.assertIsNone( - ready_future.result(test_constants.LONG_TIMEOUT)) + ready_future.result(timeout=test_constants.LONG_TIMEOUT)) value_passed_to_callback = callback.block_until_called() self.assertIs(ready_future, value_passed_to_callback) self.assertFalse(ready_future.cancelled()) |