Commit Graph

224 Commits

Author SHA1 Message Date
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