Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit fb33d56

Browse filesBrowse files
committed
add test_map_with_buffersize_on_empty_iterable
1 parent f56e379 commit fb33d56
Copy full SHA for fb33d56

File tree

Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+5
-0
lines changed

‎Lib/test/test_concurrent_futures/executor.py

Copy file name to clipboardExpand all lines: Lib/test/test_concurrent_futures/executor.py
+5Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,11 @@ def test_map_with_buffersize_on_iterable_smaller_than_buffer(self):
9494
results = self.executor.map(str, it, buffersize=10)
9595
self.assertListEqual(list(results), list(map(str, it)))
9696

97+
def test_map_with_buffersize_on_empty_iterable(self):
98+
it = iter([])
99+
results = self.executor.map(str, it, buffersize=10)
100+
self.assertListEqual(list(results), [])
101+
97102
def test_map_with_buffersize_when_buffer_becomes_full(self):
98103
manager = Manager()
99104
iterable = range(8)

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.