bpo-39481: Fix duplicate SimpleQueue type in test_genericalias.py (GH… · python/cpython@b2c0a43 (original) (raw)

Original file line number Diff line number Diff line change
@@ -29,7 +29,7 @@
29 29 except ImportError:
30 30 # multiprocessing.shared_memory is not available on e.g. Android
31 31 ShareableList = None
32 -from multiprocessing.queues import SimpleQueue
32 +from multiprocessing.queues import SimpleQueue as MPSimpleQueue
33 33 from os import DirEntry
34 34 from re import Pattern, Match
35 35 from types import GenericAlias, MappingProxyType, AsyncGeneratorType
@@ -81,7 +81,7 @@ def test_subscriptable(self):
81 81 SplitResult, ParseResult,
82 82 ValueProxy, ApplyResult,
83 83 WeakSet, ReferenceType, ref,
84 -ShareableList, SimpleQueue,
84 +ShareableList, MPSimpleQueue,
85 85 Future, _WorkItem,
86 86 Morsel]
87 87 if ctypes is not None: