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