Skip to content

Commit 162add1

Browse files
committed
order imports
1 parent 7206321 commit 162add1

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

Lib/test/test_concurrent_futures/executor.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import itertools
2-
import operator
32
import threading
43
import time
54
import weakref
65
from concurrent import futures
7-
from operator import add
8-
from functools import partial
96
from contextlib import suppress
7+
from functools import partial
8+
from operator import add, truediv
109
from test import support
1110
from test.support import Py_GIL_DISABLED
1211

@@ -151,7 +150,7 @@ def test_map_buffersize_when_error(self):
151150
index_of_zero = ints.index(0)
152151
ints_iter = iter(ints)
153152
buffersize = 2
154-
reciprocal = partial(operator.truediv, 1)
153+
reciprocal = partial(truediv, 1)
155154
results = []
156155
with suppress(ZeroDivisionError):
157156
for result in self.executor.map(

0 commit comments

Comments
 (0)