From 73812bf2a6a7352020cb41d87c1f10f4ae7baaf9 Mon Sep 17 00:00:00 2001 From: Alexandre Vassalotti Date: Sun, 11 May 2008 20:04:03 +0000 Subject: [PATCH] Added test for Queue rename warning. Added note to documentation about Queue rename. --- Doc/library/queue.rst | 2 ++ Lib/test/test_py3kwarn.py | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/Doc/library/queue.rst b/Doc/library/queue.rst index 2ce871a43e4..ceede527e46 100644 --- a/Doc/library/queue.rst +++ b/Doc/library/queue.rst @@ -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 diff --git a/Lib/test/test_py3kwarn.py b/Lib/test/test_py3kwarn.py index 40f7b190455..85a772d6123 100644 --- a/Lib/test/test_py3kwarn.py +++ b/Lib/test/test_py3kwarn.py @@ -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: