summaryrefslogtreecommitdiff
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-15 17:03:12 +0100
committerXavier de Gaye <xdegaye@users.sourceforge.net>2016-11-15 17:03:12 +0100
commitd178e69ad859703ae1873f5fc4ac3be357b7f8e4 (patch)
tree47758661f2a479922a801a6a65679b73e9166526 /Lib/test/test_logging.py
parentf9cca365c72eaa932f1bee6407fbbbc3b4ed96f0 (diff)
parent49e8f2d2040d3c15d61a713dcbe14caae41c4f0d (diff)
downloadcpython-git-d178e69ad859703ae1873f5fc4ac3be357b7f8e4.tar.gz
Issue 28668: Merge 3.5
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 078a86b359..08cdd7f3eb 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -3124,6 +3124,7 @@ if hasattr(logging.handlers, 'QueueListener'):
self.assertEqual(mock_handle.call_count, 5 * self.repeat,
'correct number of handled log messages')
+ @support.requires_multiprocessing_queue
@patch.object(logging.handlers.QueueListener, 'handle')
def test_handle_called_with_mp_queue(self, mock_handle):
for i in range(self.repeat):
@@ -3140,6 +3141,7 @@ if hasattr(logging.handlers, 'QueueListener'):
except queue.Empty:
return []
+ @support.requires_multiprocessing_queue
def test_no_messages_in_queue_after_stop(self):
"""
Five messages are logged then the QueueListener is stopped. This