summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32593: Drop FreeBSD 9 and older support (#5232)Victor Stinner2018-01-221-8/+1
| | | Drop support of FreeBSD 9 and older.
* bpo-32297: Few misspellings found in Python source code comments. (#4803)Mike2017-12-141-25/+25
| | | | | | | | * Fix multiple typos in code comments * Add spacing in comments (test_logging.py, test_math.py) * Fix spaces at the beginning of comments in test_logging.py
* bpo-28668: test.support.requires_multiprocessing_queue is removed (GH-4560)xdegaye2017-12-011-2/+6
| | | | Skip tests with test.support.import_module('multiprocessing.synchronize') instead when the semaphore implementation is broken or missing.
* bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters (#4044)Łukasz Langa2017-10-191-6/+14
| | | | | | | | | | | This used to be the case on Python 2. Commit 212b590e118e3650b596917021ed9612a918180b changed the implementation for Python 3, making the `log()` method of LogAdapter call `logger._log()` directly. This makes nested log adapters not execute their ``process()`` method. This patch fixes the issue. Also, now proxying `name`, too, to make `repr()` work with nested log adapters. New tests added.
* bpo-31457: Make the `LoggerAdapter.manager` property settable (#4042)Łukasz Langa2017-10-191-1/+14
| | | | Due to a bug in the initial fix, the setter was in fact creating a different property. This is now fixed.
* bpo-31346: Use PROTOCOL_TLS_CLIENT/SERVER (#3058)Christian Heimes2017-09-151-1/+1
| | | | | | Replaces PROTOCOL_TLSv* and PROTOCOL_SSLv23 with PROTOCOL_TLS_CLIENT and PROTOCOL_TLS_SERVER. Signed-off-by: Christian Heimes <christian@python.org>
* bpo-31234: Add support.join_thread() helper (#3587)Victor Stinner2017-09-141-12/+4
| | | | join_thread() joins a thread but raises an AssertionError if the thread is still alive after timeout seconds.
* bpo-31457: Allow for nested LoggerAdapter objects (#3551)Łukasz Langa2017-09-141-0/+11
| | | | | | Some of the proxied methods use internal Logger state which isn't proxied, causing failures if an adapter is applied to another adapter. This commit fixes the issue, adds a new test for the use case.
* bpo-31233: socketserver.ThreadingMixIn.server_close() (#3523)Victor Stinner2017-09-131-11/+2
| | | | | | | | | socketserver.ThreadingMixIn now keeps a list of non-daemonic threads to wait until all these threads complete in server_close(). Reenable test_logging skipped tests. Fix SocketHandlerTest.tearDown(): close the socket handler before stopping the server, so the server can join threads.
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-278/+256
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* bpo-31235: Fix ResourceWarning in test_logging (#3147)Victor Stinner2017-08-181-0/+2
|
* bpo-30830: test_logging uses threading_setup/cleanup (#3137)Victor Stinner2017-08-181-9/+14
| | | | | | | | | | | | | | | | | * bpo-30830: test_logging uses threading_setup/cleanup Replace @support.reap_threads on some methods with support.threading_setup() in setUp() and support.threading_cleanup() in tearDown() in BaseTest. * bpo-30830: test_logging disables threaded socketserver tests Disable tests because of socketserver.ThreadingMixIn leaks threads, whereas leaking threads now makes a test to fail on buildbots. Disable tests until socketserver is fixed: bpo-31233. * Skip also setup_via_listener()
* bpo-31080: Allowed logging.config.fileConfig() to accept both args and ↵Preston Landers2017-08-021-2/+2
| | | | kwargs. (GH-2979)
* bpo-31084: QueueHandler now formats messages correctly. (GH-2954)favll2017-08-011-0/+14
|
* bpo-30522: Implemented a method to allow setting a logging.StreamHander's ↵Vinay Sajip2017-07-301-0/+14
| | | | stream. (GH-2921)
* bpo-30962: Added caching to Logger.isEnabledFor() (GH-2752)Avram Lubkin2017-07-301-1/+59
|
* bpo-30520: Implemented pickling for loggers. (#1956)Vinay Sajip2017-06-061-0/+8
| | | Implemented pickling for loggers.
* bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses ↵Xiang Zhang2017-06-011-2/+20
| | | | (#1676)
* bpo-30131: test_logging now joins queue threads (#1298)Victor Stinner2017-04-261-0/+8
| | | | | | | | QueueListenerTest of test_logging now closes the multiprocessing Queue and joins its thread to prevent leaking dangling threads to following tests. Add also @support.reap_threads to detect earlier if a test leaks threads (and try to "cleanup" these threads).
* bpo-30131: Cleanup threads in test_logging (#1275)Victor Stinner2017-04-241-0/+15
| | | | * Use @support.reap_threads on unit tests creating threads * Call TestCase.fail() on thread.join(timeout) failure
* Issue #29220: Merged fixes from 3.6.Vinay Sajip2017-01-111-0/+8
|\
| * Issue #292Merged fixes from 3.5.Vinay Sajip2017-01-111-0/+8
| |\
| | * Issue #29220: Improved fix and test.Vinay Sajip2017-01-111-0/+8
| | |
* | | Closes #29220: Fixed regression in logging.getLevelName().Vinay Sajip2017-01-111-0/+6
| | |
* | | Closes #29177: Merged fix from 3.6.Vinay Sajip2017-01-091-24/+62
|\ \ \ | |/ /
| * | Fixes #29177: Improved resilience of logging tests which use socket servers.Vinay Sajip2017-01-091-24/+62
| | | | | | | | | | | | Thanks to Xavier de Gaye for the report and patch improvements.
* | | Closes #28524: added default level for logging.disable().Vinay Sajip2016-12-311-0/+5
|/ /
* | Issue 28668: Merge 3.5Xavier de Gaye2016-11-151-0/+2
|\ \ | |/
| * Issue 28668: Skip tests where instanciation of multiprocessing.QueueXavier de Gaye2016-11-151-0/+2
| | | | | | | | would raise ImportError
* | Issue #28480: Adjust or skip tests if multithreading is disabledMartin Panter2016-10-201-1/+1
| |
* | Added back test code lost during merge.Vinay Sajip2016-09-081-1/+71
|/
* Fixes #27930: improved QueueListener behaviour.Vinay Sajip2016-09-081-4/+86
|
* Issue #19527: Fixed tests with defined COUNT_ALLOCS.Serhiy Storchaka2016-07-031-0/+1
|
* Fixed #27251: corrected string/bytes handling in credentials.Vinay Sajip2016-06-071-1/+2
|
* Closes #25411: Merged fix from 3.4.Vinay Sajip2015-10-171-2/+2
|\
| * Closes #25411: Improved Unicode support in SMTPHandler.Vinay Sajip2015-10-171-2/+2
| |
* | Issue #25097: Merge with 3.4Zachary Ware2015-10-061-0/+1
|\ \ | |/
| * Issue #25097: Re-raise any other pywin32 errorZachary Ware2015-10-061-0/+1
| |
* | Issue #25097: Merge with 3.4Zachary Ware2015-10-061-1/+1
|\ \ | |/
| * Issue #25097: fix Windows error number accessZachary Ware2015-10-061-1/+1
| |
* | Fixes #25097: Merged fi from 3.4.Vinay Sajip2015-10-011-9/+11
|\ \ | |/
| * Fixes #25097: Windows test is skipped if there are insufficient privileges, ↵Vinay Sajip2015-10-011-9/+11
| | | | | | | | rather than failing.
* | Issue #24678: Fixed raiseExceptions typo in logging tests.Serhiy Storchaka2015-07-211-10/+4
|\ \ | |/ | | | | Patch by Jacek Kołodziej.
| * Issue #24678: Fixed raiseExceptions typo in logging tests.Serhiy Storchaka2015-07-211-11/+6
| | | | | | | | Patch by Jacek Kołodziej.
* | Issue #9517: Move script_helper to the support package.Berker Peksag2015-05-061-1/+1
| | | | | | | | Patch by Christie Wilson.
* | Issue #23207: merged fix from 3.4.Vinay Sajip2015-03-181-0/+4
|\ \ | |/
| * Issue #23207: Improved kwarg validation.Vinay Sajip2015-03-181-0/+4
| |
| * Issue #23211: Fix patch for 3.4 differences.Ned Deily2015-01-181-3/+3
| |
* | Added respect_handler_level to QueueListener.Vinay Sajip2015-02-091-0/+19
| |
* | Issue #23211: merge from 3.4Ned Deily2015-01-181-2/+2
|\ \ | |/