mirror of https://github.com/python/cpython
Added test for Queue rename warning.
Added note to documentation about Queue rename.
This commit is contained in:
parent
cf537ff39e
commit
73812bf2a6
|
@ -5,6 +5,8 @@
|
|||
.. module:: Queue
|
||||
:synopsis: A synchronized queue class.
|
||||
|
||||
.. note::
|
||||
The :mod:`Queue` module has been renamed to `queue` in Python 3.0.
|
||||
|
||||
The :mod:`Queue` module implements multi-producer, multi-consumer queues.
|
||||
It is especially useful in threaded programming when information must be
|
||||
|
|
|
@ -183,7 +183,7 @@ class TestStdlibRemovals(unittest.TestCase):
|
|||
|
||||
class TestStdlibRenames(unittest.TestCase):
|
||||
|
||||
renames = {'copy_reg': 'copyreg'}
|
||||
renames = {'copy_reg': 'copyreg', 'Queue': 'queue'}
|
||||
|
||||
def check_rename(self, module_name, new_module_name):
|
||||
"""Make sure that:
|
||||
|
|
Loading…
Reference in New Issue