Skip to content

Commit b2c0a43

Browse files
authored
bpo-39481: Fix duplicate SimpleQueue type in test_genericalias.py (GH-22619)
There are two different `SimpleQueue` types imported (from `multiprocessing.queues` and `queue`) in `Lib/test/test_genericalias.py`, the second one shadowing the first one, making the first one not actually tested. Fix by using different names. Automerge-Triggered-By: @gvanrossum
1 parent eb38c6b commit b2c0a43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Lib/test/test_genericalias.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
except ImportError:
3030
# multiprocessing.shared_memory is not available on e.g. Android
3131
ShareableList = None
32-
from multiprocessing.queues import SimpleQueue
32+
from multiprocessing.queues import SimpleQueue as MPSimpleQueue
3333
from os import DirEntry
3434
from re import Pattern, Match
3535
from types import GenericAlias, MappingProxyType, AsyncGeneratorType
@@ -81,7 +81,7 @@ def test_subscriptable(self):
8181
SplitResult, ParseResult,
8282
ValueProxy, ApplyResult,
8383
WeakSet, ReferenceType, ref,
84-
ShareableList, SimpleQueue,
84+
ShareableList, MPSimpleQueue,
8585
Future, _WorkItem,
8686
Morsel]
8787
if ctypes is not None:

0 commit comments

Comments
 (0)