We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7206321 commit 162add1Copy full SHA for 162add1
Lib/test/test_concurrent_futures/executor.py
@@ -1,12 +1,11 @@
1
import itertools
2
-import operator
3
import threading
4
import time
5
import weakref
6
from concurrent import futures
7
-from operator import add
8
-from functools import partial
9
from contextlib import suppress
+from functools import partial
+from operator import add, truediv
10
from test import support
11
from test.support import Py_GIL_DISABLED
12
@@ -151,7 +150,7 @@ def test_map_buffersize_when_error(self):
151
150
index_of_zero = ints.index(0)
152
ints_iter = iter(ints)
153
buffersize = 2
154
- reciprocal = partial(operator.truediv, 1)
+ reciprocal = partial(truediv, 1)
155
results = []
156
with suppress(ZeroDivisionError):
157
for result in self.executor.map(
0 commit comments