diff options
author | 2016-03-25 10:14:39 -0700 | |
---|---|---|
committer | 2016-03-25 10:14:39 -0700 | |
commit | 609226a90f9d6592ae46770af06e991cfdc7670f (patch) | |
tree | 46dc9a4eb1586e9cb80184df5a23de613efa4a6a /src/python/grpcio/tests/unit/framework/interfaces/face/_future_invocation_asynchronous_event_service.py | |
parent | 1a3959267026c90c033356037eca9af879f3ab80 (diff) | |
parent | ae2195667d4bbe24a8b67e5e9b23280211f92d36 (diff) |
Merge pull request #5660 from leifurhauks/py3_test_fixes
fixes to tests for py2/3 syntax compatibility
Diffstat (limited to 'src/python/grpcio/tests/unit/framework/interfaces/face/_future_invocation_asynchronous_event_service.py')
-rw-r--r-- | src/python/grpcio/tests/unit/framework/interfaces/face/_future_invocation_asynchronous_event_service.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/python/grpcio/tests/unit/framework/interfaces/face/_future_invocation_asynchronous_event_service.py b/src/python/grpcio/tests/unit/framework/interfaces/face/_future_invocation_asynchronous_event_service.py index 89f344c289..401b52f614 100644 --- a/src/python/grpcio/tests/unit/framework/interfaces/face/_future_invocation_asynchronous_event_service.py +++ b/src/python/grpcio/tests/unit/framework/interfaces/face/_future_invocation_asynchronous_event_service.py @@ -29,6 +29,8 @@ """Test code for the Face layer of RPC Framework.""" +from __future__ import division + import abc import contextlib import itertools @@ -277,7 +279,7 @@ class TestCase(six.with_metaclass(abc.ABCMeta, test_coverage.Coverage, unittest. some_completed_response_futures_iterator = itertools.islice( futures.as_completed(response_futures_to_indices), - test_constants.PARALLELISM / 2) + test_constants.PARALLELISM // 2) for response_future in some_completed_response_futures_iterator: index = response_futures_to_indices[response_future] test_messages.verify(requests[index], response_future.result(), self) |