summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.6] bpo-32297: Fix misspellings in Python source code comments (GH-4803) ↵Andrew Svetlov2017-12-141-25/+25
| | | | | | | | | | | | | | (#4864) * [3.6] bpo-32297: Few misspellings found in Python source code comments. (GH-4803) * 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. (cherry picked from commit 53f7a7c2814fbfd8a29200926601a32fa48bacb3)
* bpo-31457: Don't omit inner ``process()`` calls with nested LogAdapters ↵Miss Islington (bot)2017-10-191-6/+14
| | | | | | | | | | | | | | (GH-4044) (GH-4050) 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. (cherry picked from commit ce9e62544571e7ade7186697d5dd065fb4c5243f)
* [3.6] bpo-31457: Make the `LoggerAdapter.manager` property settable ↵Miss Islington (bot)2017-10-191-1/+14
| | | | | | | (GH-4042) (#4043) Due to a bug in the initial fix, the setter was in fact creating a different property. This is now fixed. (cherry picked from commit 0b6a118a45ac2eded1348fea6ed300d5651f7471)
* [3.6] bpo-31457: Allow for nested LoggerAdapter objects (GH-3551) (#3576)Miss Islington (bot)2017-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. (cherry picked from commit 1bbd482bcf6ea36bfe488f868810ffe110238ae1)
* bpo-31235: Fix ResourceWarning in test_logging (#3147) (#3149)Victor Stinner2017-08-181-0/+1
| | | (cherry picked from commit a7719e27b3cad0f2b86cb932a76cbe55c541b02e)
* bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses ↵Xiang Zhang2017-06-011-2/+20
| | | | (#1676) (#1903)
* bpo-30131: test_logging now joins queue threads (#1298) (#1317)Victor Stinner2017-04-281-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). (cherry picked from commit 8ca2f2faefa8dba323a2e4c4b86efb633d7a53cf)
* Issue #292Merged fixes from 3.5.Vinay Sajip2017-01-111-0/+8
|\
| * Issue #29220: Improved fix and test.Vinay Sajip2017-01-111-0/+8
| |
* | 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.
* | 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
|\ \ | |/
| * Issue #23211: Workaround test_logging failure on some OS X 10.6 systems:Ned Deily2015-01-181-2/+2
| | | | | | | | | | getaddrinfo("localhost") can fail depending on the name server configuration, use "127.0.0.0" instead.
* | merge 3.4 (#22788)Benjamin Peterson2014-11-241-14/+5
|\ \ | |/
| * add context parameter to HTTPHandler (closes #22788)Benjamin Peterson2014-11-241-14/+5
| |
* | merge 3.4 (#22417)Benjamin Peterson2014-11-031-37/+18
|\ \ | |/
| * PEP 476: enable HTTPS certificate verification by default (#22417)Benjamin Peterson2014-11-031-37/+18
| | | | | | | | Patch by Alex Gaynor with some modifications by me.
* | Closes #20537: logging methods now accept an exception instance as well as a ↵Vinay Sajip2014-09-141-0/+13
| | | | | | | | Boolean value or exception tuple. Thanks to Yury Selivanov for the patch.
* | Closes #22386: merged fix from 3.4.Vinay Sajip2014-09-111-0/+4
|\ \ | |/
| * Issue #22386: fixed regression.Vinay Sajip2014-09-111-0/+4
| |
* | #19662: Eliminate warnings in other test modules that use smtpd.R David Murray2014-06-111-1/+2
| | | | | | | | Eventually these will want to convert to decode_data=False, I think.
* | (Merge 3.4) Issue #21636: Fix test_logging, skip UNIX stream (AF_UNIX) tests onVictor Stinner2014-06-021-10/+12
|\ \ | |/ | | | | Windows. Patch written by Claudiu Popa.
| * Issue #21636: Fix test_logging, skip UNIX stream (AF_UNIX) tests on Windows.Victor Stinner2014-06-021-10/+12
| | | | | | | | Patch written by Claudiu Popa.
* | Closes #21583: Improved test_logging. Thanks to Diana Joan Clarke for the patch.Vinay Sajip2014-05-311-85/+81
|/
* Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-2/+0
|\ | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang lines in the unittestgui and checkpip scripts.
| * Issue #19936: Added executable bits or shebang lines to Python scripts whichSerhiy Storchaka2014-01-161-2/+0
| | | | | | | | | | | | | | requires them. Disable executable bits and shebang lines in test and benchmark files in order to prevent using a random system python, and in source files of modules which don't provide command line interface. Fixed shebang line to use python3 executable in the unittestgui script.
* | Closes #20242: Merged fix from 3.3.Vinay Sajip2014-01-131-0/+16
|\ \ | |/
| * Issue #20242: Fixed basicConfig() format strings for the alternative ↵Vinay Sajip2014-01-131-0/+16
| | | | | | | | formatting styles.
* | Issue #20037: Avoid crashes when doing text I/O late at interpreter shutdown.Antoine Pitrou2013-12-211-0/+20
| |