mirror of
https://github.com/python/cpython.git
synced 2025-07-29 06:05:00 +00:00
Added test for Queue rename warning.
Added note to documentation about Queue rename.
This commit is contained in:
parent
cf537ff39e
commit
73812bf2a6
2 changed files with 3 additions and 1 deletions
|
@ -5,6 +5,8 @@
|
||||||
.. module:: Queue
|
.. module:: Queue
|
||||||
:synopsis: A synchronized queue class.
|
: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.
|
The :mod:`Queue` module implements multi-producer, multi-consumer queues.
|
||||||
It is especially useful in threaded programming when information must be
|
It is especially useful in threaded programming when information must be
|
||||||
|
|
|
@ -183,7 +183,7 @@ class TestStdlibRemovals(unittest.TestCase):
|
||||||
|
|
||||||
class TestStdlibRenames(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):
|
def check_rename(self, module_name, new_module_name):
|
||||||
"""Make sure that:
|
"""Make sure that:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue