Preston Landers
6ea56d2ebc
bpo-31080: Allowed logging.config.fileConfig() to accept both args and kwargs. (GH-2979)
2017-08-02 21:44:28 +01:00
favll
adfe3440f6
bpo-31084: QueueHandler now formats messages correctly. (GH-2954)
2017-08-01 19:12:26 +01:00
Vinay Sajip
2543f50033
bpo-30522: Implemented a method to allow setting a logging.StreamHander's stream. (GH-2921)
2017-07-30 10:41:45 +01:00
Avram Lubkin
78c18a9b9a
bpo-30962: Added caching to Logger.isEnabledFor() (GH-2752)
2017-07-30 10:36:33 +01:00
Vinay Sajip
6260d9f203
bpo-30520: Implemented pickling for loggers. ( #1956 )
...
Implemented pickling for loggers.
2017-06-06 16:34:29 +01:00
Xiang Zhang
0b4b57df96
bpo-30378: Fix the problem that SysLogHandler can't handle IPv6 addresses ( #1676 )
2017-06-01 21:11:56 +08:00
Victor Stinner
8ca2f2faef
bpo-30131: test_logging now joins queue threads ( #1298 )
...
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).
2017-04-26 15:56:25 +02:00
Victor Stinner
4bcfa3a236
bpo-30131: Cleanup threads in test_logging ( #1275 )
...
* Use @support.reap_threads on unit tests creating threads
* Call TestCase.fail() on thread.join(timeout) failure
2017-04-25 00:41:36 +02:00
Vinay Sajip
d4f5001bac
Issue #29220 : Merged fixes from 3.6.
2017-01-11 17:44:07 +00:00
Vinay Sajip
a861d48817
Issue #292Merged fixes from 3.5.
2017-01-11 17:41:28 +00:00
Vinay Sajip
924aaae4c2
Issue #29220 : Improved fix and test.
2017-01-11 17:35:36 +00:00
Vinay Sajip
8b866d5429
Closes #29220 : Fixed regression in logging.getLevelName().
2017-01-11 06:57:55 +00:00
Vinay Sajip
9ebb245db8
Closes #29177 : Merged fix from 3.6.
2017-01-09 16:55:24 +00:00
Vinay Sajip
1e6499c19c
Fixes #29177 : Improved resilience of logging tests which use socket servers.
...
Thanks to Xavier de Gaye for the report and patch improvements.
2017-01-09 16:54:12 +00:00
Vinay Sajip
d489ac9102
Closes #28524 : added default level for logging.disable().
2016-12-31 11:40:11 +00:00
Xavier de Gaye
d178e69ad8
Issue 28668: Merge 3.5
2016-11-15 17:03:12 +01:00
Xavier de Gaye
49e8f2d204
Issue 28668: Skip tests where instanciation of multiprocessing.Queue
...
would raise ImportError
2016-11-15 16:57:52 +01:00
Martin Panter
94332cba0f
Issue #28480 : Adjust or skip tests if multithreading is disabled
2016-10-20 05:10:44 +00:00
Vinay Sajip
d61910c598
Fixes #27930 : improved QueueListener behaviour.
2016-09-08 01:13:39 +01:00
Vinay Sajip
db8f46321f
Added back test code lost during merge.
2016-09-08 01:37:03 +01:00
Serhiy Storchaka
a793037d80
Issue #19527 : Fixed tests with defined COUNT_ALLOCS.
2016-07-03 22:27:26 +03:00
Vinay Sajip
1bf197eb14
Fixed #27251 : corrected string/bytes handling in credentials.
2016-06-07 21:19:55 +01:00
Vinay Sajip
3f445f799a
Closes #25411 : Merged fix from 3.4.
2015-10-17 16:17:52 +01:00
Vinay Sajip
277640af0f
Closes #25411 : Improved Unicode support in SMTPHandler.
2015-10-17 16:13:10 +01:00
Zachary Ware
479ac6654c
Issue #25097 : Merge with 3.4
2015-10-06 15:28:56 -05:00
Zachary Ware
106ddf07b3
Issue #25097 : Re-raise any other pywin32 error
2015-10-06 15:28:43 -05:00
Zachary Ware
af34b248d1
Issue #25097 : Merge with 3.4
2015-10-06 15:22:41 -05:00
Zachary Ware
22226c5595
Issue #25097 : fix Windows error number access
2015-10-06 15:22:13 -05:00
Vinay Sajip
d5963e615d
Fixes #25097 : Merged fi from 3.4.
2015-10-01 20:38:53 +01:00
Vinay Sajip
223349cfb8
Fixes #25097 : Windows test is skipped if there are insufficient privileges, rather than failing.
2015-10-01 20:37:54 +01:00
Serhiy Storchaka
750eae1bd4
Issue #24678 : Fixed raiseExceptions typo in logging tests.
...
Patch by Jacek Kołodziej.
2015-07-21 22:39:26 +03:00
Serhiy Storchaka
296b347db7
Issue #24678 : Fixed raiseExceptions typo in logging tests.
...
Patch by Jacek Kołodziej.
2015-07-21 22:40:18 +03:00
Berker Peksag
ce643913a9
Issue #9517 : Move script_helper to the support package.
...
Patch by Christie Wilson.
2015-05-06 06:33:17 +03:00
Vinay Sajip
3505bd82a9
Issue #23207 : merged fix from 3.4.
2015-03-18 08:49:57 +00:00
Vinay Sajip
d55436ace3
Issue #23207 : Improved kwarg validation.
2015-03-18 08:47:58 +00:00
Vinay Sajip
365701add9
Added respect_handler_level to QueueListener.
2015-02-09 19:49:00 +00:00
Ned Deily
3bbb37e09b
Issue #23211 : Fix patch for 3.4 differences.
2015-01-17 17:31:13 -08:00
Ned Deily
cad3eb6d5d
Issue #23211 : merge from 3.4
2015-01-17 16:59:50 -08:00
Ned Deily
1e012e6c7f
Issue #23211 : Workaround test_logging failure on some OS X 10.6 systems:
...
getaddrinfo("localhost") can fail depending on the name server configuration,
use "127.0.0.0" instead.
2015-01-17 16:57:19 -08:00
Benjamin Peterson
43052a14c1
add context parameter to HTTPHandler ( closes #22788 )
2014-11-23 20:36:44 -06:00
Benjamin Peterson
6c22e65773
merge 3.4 ( #22788 )
2014-11-23 20:38:13 -06:00
Benjamin Peterson
1cca273669
merge 3.4 ( #22417 )
2014-11-03 14:36:48 -05:00
Benjamin Peterson
4ffb075271
PEP 476: enable HTTPS certificate verification by default ( #22417 )
...
Patch by Alex Gaynor with some modifications by me.
2014-11-03 14:29:33 -05:00
Vinay Sajip
02a8f9e9ac
Closes #20537 : logging methods now accept an exception instance as well as a Boolean value or exception tuple. Thanks to Yury Selivanov for the patch.
2014-09-14 21:29:11 +01:00
Vinay Sajip
a56411e5d4
Closes #22386 : merged fix from 3.4.
2014-09-11 23:08:48 +01:00
Vinay Sajip
d1d4fbff63
Issue #22386 : fixed regression.
2014-09-11 23:06:09 +01:00
R David Murray
1144da5821
#19662 : Eliminate warnings in other test modules that use smtpd.
...
Eventually these will want to convert to decode_data=False, I think.
2014-06-11 12:27:40 -04:00
Victor Stinner
8ff373714c
(Merge 3.4) Issue #21636 : Fix test_logging, skip UNIX stream (AF_UNIX) tests on
...
Windows. Patch written by Claudiu Popa.
2014-06-02 14:43:24 +02:00
Victor Stinner
ec5a860e60
Issue #21636 : Fix test_logging, skip UNIX stream (AF_UNIX) tests on Windows.
...
Patch written by Claudiu Popa.
2014-06-02 14:41:51 +02:00
Vinay Sajip
1feedb43be
Closes #21583 : Improved test_logging. Thanks to Diana Joan Clarke for the patch.
2014-05-31 08:19:12 +01:00
Serhiy Storchaka
8f8ec92de8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
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.
2014-01-16 17:33:23 +02:00
Serhiy Storchaka
b992a0e102
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
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.
2014-01-16 17:15:49 +02:00
Vinay Sajip
30e6a64e76
Closes #20242 : Merged fix from 3.3.
2014-01-13 22:01:16 +00:00
Vinay Sajip
1fd1202072
Issue #20242 : Fixed basicConfig() format strings for the alternative formatting styles.
2014-01-13 21:59:56 +00:00
Antoine Pitrou
712cb734bd
Issue #20037 : Avoid crashes when doing text I/O late at interpreter shutdown.
2013-12-21 15:51:54 +01:00
Vinay Sajip
dc96ca25df
Added some diagnostics to help with #19690 .
2013-12-03 12:31:23 +00:00
Vinay Sajip
ef2d8a597c
Closes #19665 : Merged fi from 3.3.
2013-12-03 11:29:45 +00:00
Vinay Sajip
827f5d35e5
Issue #19665 : Increased timeout for SMTPHandler test.
2013-12-03 11:28:55 +00:00
Vinay Sajip
cb2c4fe649
Updated test_logging so that errors don't occur in the absence of threading.
2013-09-27 19:08:24 +01:00
Vinay Sajip
f6cdffeb78
Streamlined logging tests by moving common code to a helper function.
2013-09-27 18:41:12 +01:00
Vinay Sajip
5421f35d5e
logging: added support for Unix domain sockets to SocketHandler and DatagramHandler.
2013-09-27 18:18:28 +01:00
Antoine Pitrou
04d4d6a3aa
Avoid test_logging failure when run after test_unittest, by renaming a conflicting logger
2013-09-14 21:16:39 +02:00
Serhiy Storchaka
48e6a8c88a
Issue #18743 : Fix references to non-existant "StringIO" module
...
in docstrings and comments.
2013-08-29 11:39:48 +03:00
Serhiy Storchaka
50254c57cd
Issue #18743 : Fix references to non-existant "StringIO" module
...
in docstrings and comments.
2013-08-29 11:35:43 +03:00
Vinay Sajip
30298b468b
Closes #11959 : SMTPServer and SMTPChannel now take an optional map, use of which avoids affecting global state.
2013-06-07 15:21:41 +01:00
Vinay Sajip
3b84eae03e
Closes #18046 : Simplified logging internals relating to levels and their names. Thanks to Alex Gaynor for the patch.
2013-05-25 03:20:34 -07:00
Vinay Sajip
10e8c49a11
Re-enabled skipped test.
2013-05-18 10:19:54 -07:00
Vinay Sajip
43473e3680
Diagnostics collected, test disabled for now.
2013-05-12 00:18:02 +01:00
Vinay Sajip
caf9eb8ada
Re-enabled test with more diagnostics.
2013-05-12 00:04:58 +01:00
Vinay Sajip
577abe161d
Skip failing test pending investigation.
2013-05-07 10:52:18 +01:00
Vinay Sajip
66940a11f8
Issue #17713 : Added failure diagnostics to test.
2013-04-15 11:59:35 +01:00
Vinay Sajip
8b4c7198db
Issue #17713 : additional tweak to test.
2013-04-14 12:25:25 +01:00
Vinay Sajip
d86ac96fcf
Closes #17713 : Fixed bug in test_compute_rollover_weekly_attime.
2013-04-14 12:20:46 +01:00
Vinay Sajip
171bb26b32
Issue #17713 : Test temporarily skipped while failure investigated.
2013-04-13 17:35:14 +01:00
Vinay Sajip
a713079ed8
Closed #9556 : Allowed specifying a time-of-day for a TimedRotatingFileHandler to rotate.
2013-04-12 17:04:23 +01:00
Vinay Sajip
04cc55a14c
Closes #17540 : Merged fix from 3.3.
2013-03-29 17:59:15 +00:00
Vinay Sajip
28421c6f62
Issue #17540 : Added style to Formatter configuration by dict.
2013-03-29 17:56:54 +00:00
Vinay Sajip
8ec95b81d5
Closes #17521 : Merged fix from 3.3.
2013-03-23 11:23:05 +00:00
Vinay Sajip
9b862b9d66
Issue #17521 : Merged fix from 3.2.
2013-03-23 11:22:00 +00:00
Vinay Sajip
68b4cc87cd
Issue #17521 : Corrected non-enabling of logger following two calls to fileConfig().
2013-03-23 11:18:45 +00:00
Vinay Sajip
5a63fe6813
Closes #17508 : Merged fix from 3.3.
2013-03-22 15:27:52 +00:00
Vinay Sajip
340a4bb2fe
Issue #17508 : Merged fix from 3.2.
2013-03-22 15:23:13 +00:00
Vinay Sajip
3f885b5432
Issue #17508 : Handled out-of-order handler configuration correctly.
2013-03-22 15:19:54 +00:00
Vinay Sajip
becf5c6deb
Issue #17384 : Consolidated cleanup operations in tests.
2013-03-08 09:50:57 +00:00
Vinay Sajip
f9e9754c47
Closes #17313 : Deleted test file created by test_logging.
2013-02-27 23:33:52 +00:00
Andrew Svetlov
f7a17b48d7
Replace IOError with OSError ( #16715 )
2012-12-25 16:47:37 +02:00
Andrew Svetlov
0832af6628
Issue #16717 : get rid of socket.error, replace with OSError
2012-12-18 23:10:48 +02:00
Andrew Svetlov
6d8a122b9c
Issue #16704 : Get rid of select.error in stdlib. Use OSError instead.
2012-12-17 22:23:46 +02:00
Vinay Sajip
8d27023a7e
Allow configuration of handler properties.
2012-11-15 14:20:18 +00:00
Antoine Pitrou
da201fa248
Try to fix issue #16264 (test_logging failure on some buildbots).
2012-10-21 17:18:27 +02:00
Giampaolo Rodola'
284529dcf4
test_logging.py: where needed use unittest's assertGreater, assertLesser, assertIs rather than assertTrue (also in order to debug issue 16264)
2012-10-17 13:24:27 +02:00
Vinay Sajip
cf9e2f2420
Closes #16110 : fileConfig now accepts a pre-initialised ConfigParser instance.
2012-10-09 09:06:03 +01:00
Ezio Melotti
3ffd29b615
Remove unnecessary [].
2012-10-02 19:45:00 +03:00
Vinay Sajip
4ded5512d7
Issue #15452 : Added verify option for logging configuration socket listener.
2012-10-02 15:56:16 +01:00
Vinay Sajip
d27e05d734
Closes #16521 : Improved error handling for basicConfig(), added tests for same.
2012-11-25 15:11:46 +00:00
Vinay Sajip
ed1f7c834f
Closes #14902 : Fixed timezone conversion of a date/time in the past. Thanks to Yuriy Syrovetskiy for the report and Juancarlo Añez for the patch on which this fix is based.
2012-07-03 21:36:36 +01:00
Vinay Sajip
d70be9ba1f
Added test skip under Windows, as not applicable there.
2012-05-31 12:37:04 +01:00
Vinay Sajip
5e86eed33e
Reapplied skip logic for test on Windows, which appears to have been lost during a merge.
2012-05-29 22:48:10 +01:00
R David Murray
d1a30c939c
#8739 : upgrade smtpd to RFC 5321 and 1870.
...
smtpd now handles EHLO and has infrastructure for extended smtp command mode.
The SIZE extension is also implemented. In order to support parameters on
MAIL FROM, the RFC 5322 parser from the email package is used to parse the
address "token".
Logging subclasses things and overrides __init__, so it was necessary to
update those __init__ functions in the logging tests to make the logging tests
pass.
The original suggestion and patch were by Alberto Trevino. Juhana Jauhiainen
added the --size argument and SIZE parameter support. Michele Orrù improved
the patch and added more tests. Dan Boswell conditionalized various bits of
code on whether or not we are in HELO or EHLO mode, as well as some other
improvements and tests. I finalized the patch and added the address parsing.
2012-05-26 14:33:59 -04:00
Vinay Sajip
ac20f463da
Merged hanged order of cleanup operations from 3.2.
2012-05-03 12:09:38 +01:00
Vinay Sajip
89282afafb
Changed order of cleanup operations to be more sensible.
2012-05-03 12:06:52 +01:00
Vinay Sajip
c94871a5c0
Merged fixed test from 3.2.
2012-04-25 10:51:35 +01:00
Vinay Sajip
c2ad0aa9f1
Fixed test to work on Windows.
2012-04-25 10:47:00 +01:00
Vinay Sajip
a5798ded26
Issue #14632 : Updated WatchedFileHandler to deal with race condition. Thanks to John Mulligan for the problem report and patch.
2012-04-24 23:33:33 +01:00
Vinay Sajip
66b8b08752
Issue #14632 : Updated WatchedFileHandler to deal with race condition. Thanks to John Mulligan for the problem report and patch.
2012-04-24 23:25:30 +01:00
Vinay Sajip
4c3f47896e
Issue #14644 : Increased default timeout for SMTPHandler. Note: last commit message referred to the wrong issue number.
2012-04-22 18:19:50 +01:00
Vinay Sajip
7706d9ae4f
Closes #14452 : brought tests in line with removal of BOM insertion code.
2012-04-16 16:22:38 +01:00
Vinay Sajip
17160fd6d6
Fixes #14314 : Improved SMTP timeout handling.
2012-03-15 12:02:08 +00:00
Eric V. Smith
851cad7616
Make test_logging no longer fail if zlib not present. Closes #14256 . Patch by Pedro Kroger.
2012-03-11 22:46:04 -07:00
Vinay Sajip
b2fcd3a989
Added delay before record creation.
2012-03-05 20:02:53 +00:00
Vinay Sajip
8d217c6a71
Issue #12151 : Added more info to diagnostics.
2012-03-05 12:45:51 +00:00
Vinay Sajip
b6f6670d87
Added more diagnostics for diagnosing #12151 .
2012-03-05 09:43:47 +00:00
Vinay Sajip
d263d18553
Fixed problem with diagnostic output.
2012-03-03 16:20:37 +00:00
Vinay Sajip
19b1d50732
Added additional diagnostics to help with #12151 .
2012-02-28 19:02:43 +00:00
Vinay Sajip
2c94cdde6d
Closes #13732 : now use os.linesep instead of a literal newline.
2012-01-07 23:26:17 +00:00
Vinay Sajip
23b94d0b98
Refactored logging rotating handlers for improved flexibility.
2012-01-04 12:02:26 +00:00
Florent Xicluna
e41f0de84d
Merge 3.2, fix typos.
2011-11-11 19:39:25 +01:00
Florent Xicluna
5252f9faee
logging: replace codecs.open with builtins.open, remove '_encoded' sort, add some tests.
2011-11-07 19:43:05 +01:00
Vinay Sajip
e2618f34be
Closes #13361 : Merge fix from 3.2.
2011-11-07 10:15:55 +00:00
Vinay Sajip
3bd5638736
Closes #13361 : Raise correct exception type.
2011-11-07 10:15:08 +00:00
Vinay Sajip
39b53c50c4
Merged fix for #13361 from 3.2.
2011-11-07 08:53:58 +00:00
Vinay Sajip
61b787e6dd
Closes #13661 : Check added for type of logger name.
2011-11-07 08:53:03 +00:00
Vinay Sajip
b9e46e95f8
Changed warn() to warning() in logging tests.
2011-10-26 13:17:20 +01:00
Victor Stinner
e67474725b
Issue #12326 : refactor usage of sys.platform
...
* Use str.startswith(tuple): I didn't know this Python feature, Python rocks!
* Replace sometimes sys.platform.startswith('linux') with
sys.platform == 'linux'
* sys.platform doesn't contain the major version on Cygwin on Mac OS X
(it's just 'cygwin' and 'darwin')
2011-08-21 00:39:18 +02:00
Victor Stinner
9c3de4a883
Issue #12326 : don't test the major version of sys.platform
...
Use startswith, instead of ==, when testing sys.platform to support
new platforms like Linux 3 or OpenBSD 5.
2011-08-17 20:49:41 +02:00
Vinay Sajip
8188f585b2
Fixes #12637 : Merged fix from 3.2 and added test.
2011-07-25 19:58:13 +01:00
Vinay Sajip
2353e35570
Closes #12419 : Added ident to SysLogHandler.
2011-06-27 15:40:06 +01:00
Vinay Sajip
8dd8d582e3
Merged fix for issue #12168 from 3.2.
2011-06-09 16:55:23 +01:00
Vinay Sajip
5056c8c718
Closes issue #11557 : removal of non-idiomatic code in test_logging.
2011-06-05 09:31:34 +01:00
Vinay Sajip
b7b1930fe3
Updated test_rollover delay to just over a second.
2011-05-24 07:12:41 +01:00
Vinay Sajip
3ef1229b14
Issue #12151 : Test now ignores datagram socket errors after server is closed.
2011-05-23 23:00:42 +01:00
Vinay Sajip
acd902be64
Issue #12151 : Correction to diagnostic code.
2011-05-23 21:49:09 +01:00
Vinay Sajip
ba980db797
Issue #12151 : Added diagnostics to help diagnose intermittent socket errors.
2011-05-23 21:37:54 +01:00
Victor Stinner
949c890e48
Issue #12151 : test_logging writes debug messages to stderr, not stdout
...
stdout are lost in buildbots
2011-05-23 01:16:44 +02:00
Vinay Sajip
39e3528bb2
Issue #12136 : Added change to handle non-availability of the ssl module.
2011-05-21 16:46:41 +01:00
Vinay Sajip
9ba876104e
Added SSL test for HTTPHandler.
2011-05-21 11:32:15 +01:00
Vinay Sajip
32565b6c02
Added SSL capability to TestHTTPServer.
2011-05-21 00:34:51 +01:00
Vinay Sajip
bd3d5cf96a
Skip some tests in the absence of multiprocessing.
2011-05-17 07:41:18 +01:00
Vinay Sajip
ce7c978140
Skip some more tests in the absence of threading.
2011-05-17 07:15:53 +01:00
Vinay Sajip
252048c8a1
test_logging: extended time range for rollover test.
2011-05-13 16:41:57 +01:00
Vinay Sajip
a171f9c6a3
test_logging: fixed bug in failure diagnostics.
2011-05-13 14:45:08 +01:00
Vinay Sajip
a552ca6fd0
Issue #12068 : Fix appears to have worked; added more diagnostics for rare failures.
2011-05-13 12:16:04 +01:00
Vinay Sajip
672c581633
Added diagnostics to test_logging, after reverting last change.
2011-05-13 07:09:40 +01:00
Vinay Sajip
06c768a35a
TimedTRotatingFileHandler test now improved to minimise chances of failure on very slow machines.
2011-05-12 16:18:29 +01:00
Vinay Sajip
463ac515ee
Issue #12039 : Add end_headers() call to avoid BadStatusLine.
2011-05-10 09:10:08 +01:00
Vinay Sajip
e73afad50f
Issue #12039 : Now suppress spurious select.error raised on FreeBSD when the server (an asyncore.dispatcher) is closed.
2011-05-10 07:48:28 +01:00
Vinay Sajip
f223116001
Update incorrect comment.
2011-05-09 22:05:50 +01:00
Vinay Sajip
60ccd8214f
Improved Windows test coverage.
2011-05-09 17:32:09 +01:00
Vinay Sajip
fd28502fcf
Closed resource leak in SysLogHandler.
2011-05-07 17:01:22 +01:00
Vinay Sajip
a6bbbe43ef
Refined rollover test for slow test machines.
2011-05-06 19:06:00 +01:00
Vinay Sajip
89c8862ee5
Close handler opened in test.
2011-05-06 07:19:41 +01:00
Vinay Sajip
28338fbdba
Added additional output to help diagnose buildbot failures.
2011-05-05 21:23:42 +01:00
Vinay Sajip
e9a56e8d49
Tweaked timed rollover test to allow for test-time delays.
2011-05-05 14:18:33 +01:00
Vinay Sajip
0372e10684
Improved coverage and fixed bug in HTTPHandler with POST requests.
2011-05-05 12:59:14 +01:00
Victor Stinner
59bec36b1c
(Merge 3.2) logging: don't define QueueListener if Python has no thread support
2011-05-02 16:14:16 +02:00
Victor Stinner
cafa2efedb
logging: don't define QueueListener if Python has no thread support
2011-05-02 16:11:28 +02:00
Vinay Sajip
714b8dc501
Improved thread interlocks in tests.
2011-05-02 14:43:00 +01:00
Vinay Sajip
314b92b26e
Updated docstrings.
2011-05-02 14:31:16 +01:00
Vinay Sajip
7367d08838
Added tests to improve coverage.
2011-05-02 13:17:27 +01:00
Vinay Sajip
a463d25930
Improved test coverage.
2011-04-30 21:52:48 +01:00
Vinay Sajip
7fe1d51924
Improved test_logging coverage.
2011-04-28 12:04:58 +01:00
Vinay Sajip
6bba65c799
Use correct Unix socket for syslogd on OS X.
2011-04-27 14:31:55 +01:00
Vinay Sajip
dbeb27461c
test_logging: handle syslogd connection failure.
2011-04-27 14:18:06 +01:00
Vinay Sajip
5a35b06d5e
test_logging coverage improvements.
2011-04-27 11:31:14 +01:00
Vinay Sajip
86a96cee23
Re-enabled time test in test_logging.
2011-04-27 08:30:30 +01:00
Vinay Sajip
d972d8fea2
Disabled test failing on buildbots.
2011-04-26 20:51:07 +01:00
Vinay Sajip
37eb3387a4
Refined time test in test_logging.
2011-04-26 20:26:41 +01:00
Vinay Sajip
373baef1eb
Yet more test_logging coverage improvements.
2011-04-26 20:05:24 +01:00
Vinay Sajip
985ef87ea0
More test_logging coverage improvements.
2011-04-26 19:34:04 +01:00
Vinay Sajip
26fe4b70cf
test_logging coverage improvements.
2011-04-26 18:43:05 +01:00
Vinay Sajip
00bdbe1d97
Fixed bug in test_logging.
2011-04-22 00:17:46 +01:00
Vinay Sajip
5e66b167ff
Tidied comments and docstrings.
2011-04-20 15:41:14 +01:00
Vinay Sajip
5b9eecf8cf
Attempt fix of #11557 by refining test logic.
2011-04-20 12:50:42 +01:00
Vinay Sajip
1e42f9e4c0
Attempt fix of #11557 by refining setup/teardown logic.
2011-04-20 12:20:44 +01:00
Vinay Sajip
95bf50416e
Attempt fix of #11557 by changing setup/teardown logic.
2011-04-20 11:50:56 +01:00
Vinay Sajip
3def7e0f01
Attempt fix of #11557 by changing teardown logic.
2011-04-20 10:58:06 +01:00
Vinay Sajip
cd5a2bd48e
Issue #11852 : Merge fix from 3.2.
2011-04-15 22:29:15 +01:00
Vinay Sajip
e723e96103
Issue #11852 : Add missing imports and update tests.
2011-04-15 22:27:17 +01:00
Vinay Sajip
4a0a31df5c
Added 'handlers' argument to logging.basicConfig.
2011-04-11 08:42:07 +01:00
Victor Stinner
3c7c355e67
Issue #11557 : disable test_logging.test_no_kwargs (fail on most buildbots)
2011-03-31 03:22:15 +02:00
Vinay Sajip
e6c1eb9267
Closes issue #11557 : Added Natalia Bidart's patch to improve test coverage.
2011-03-29 17:20:34 +01:00
Vinay Sajip
9f9991c2f5
#Issue 11424: added equivalent fixes for dictConfig.
2011-03-07 18:02:57 +00:00
Vinay Sajip
e783553daa
#Issue 11424: merged fix from 3.1.
2011-03-07 17:59:50 +00:00
Vinay Sajip
3f84b07816
Issue #11424 : Fix bug in determining child loggers.
2011-03-07 17:49:33 +00:00
Vinay Sajip
89807a5277
Issue #11330 : Updated tests for correct asctime handling.
2011-02-26 16:06:02 +00:00
Vinay Sajip
ed0473cfaf
Issue #9941 : Fixed TimedRotatingHandler test issues.
2011-02-26 15:35:38 +00:00
Vinay Sajip
7b0e86ef17
Issue #10788 : Changed test_logging setUp logic to provide more information.
2010-12-30 23:26:50 +00:00
Vinay Sajip
7b60f4e949
Issue #10626 : test_logging now preserves logger disabled states.
2010-12-27 14:31:52 +00:00
Vinay Sajip
60b4df15d6
Issue #10774 : test_logging now removes temp files created during tests.
2010-12-27 11:18:52 +00:00
Vinay Sajip
5a27d40186
logging: added handler of last resort.
2010-12-10 11:42:57 +00:00
Vinay Sajip
615615291f
logging: Added getLogRecordFactory/setLogRecordFactory with docs and tests.
2010-12-03 11:50:38 +00:00
Ezio Melotti
19f2aeba67
Merged revisions 86596 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line
#9424 : Replace deprecated assert* methods in the Python test suite.
........
2010-11-21 01:30:29 +00:00
Ezio Melotti
b3aedd4862
#9424 : Replace deprecated assert* methods in the Python test suite.
2010-11-20 19:04:17 +00:00
Vinay Sajip
b046b807fa
Remove ResourceWarnings caused by files left open.
2010-10-30 09:50:18 +00:00
Vinay Sajip
6a65c5df86
logging: Improved Formatter implementation.
2010-10-26 13:16:11 +00:00
Vinay Sajip
a39c571061
logging: Added style option to Formatter to allow %, {} or himBHformatting.
2010-10-25 13:57:39 +00:00
Vinay Sajip
6dbed2e8b3
logging: Allowed filters to be just callables.
2010-10-19 20:53:01 +00:00
Vinay Sajip
6fac817136
logging: Added tests for _logRecordClass changes.
2010-10-19 20:44:14 +00:00
Vinay Sajip
c84f016988
Added some methods to LoggerAdapter, and updated documentation.
2010-09-21 11:25:39 +00:00
Vinay Sajip
b4a0809ad7
logging: Add hasHandlers() method to Logger.
2010-09-20 09:55:00 +00:00