Commit graph

209 commits

Author SHA1 Message Date
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
Hirokazu Yamamoto
2cdacd7495 Added missing BaseTest.tearDown(self). Fixed refleak. 2010-09-18 03:54:32 +00:00
Vinay Sajip
bc85d848f5 Temporarily commented out test which succeeds locally but fails on buildbots, while investigating. 2010-09-17 23:35:29 +00:00
Vinay Sajip
19ec67acf6 Issue #9441: logging: Improved test coverage for rotating file handlers. 2010-09-17 18:57:36 +00:00
Vinay Sajip
8552d1fc8f Added test for QueueHandler. 2010-09-14 09:34:09 +00:00
Florent Xicluna
dc692740a8 Replace the deprecated ConfigParser.readfp() method, and fix the incomplete merge in r82293. 2010-08-15 20:16:27 +00:00
Benjamin Peterson
a82addb5f3 Merged revisions 80712,81651 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80712 | vinay.sajip | 2010-05-03 10:11:53 -0500 (Mon, 03 May 2010) | 1 line

  Issue #8576: logging updated to remove usage of find_unused_port().
........
  r81651 | vinay.sajip | 2010-06-02 05:05:31 -0500 (Wed, 02 Jun 2010) | 1 line

  Logging: improved error reporting for BaseConfigurator.resolve().
........
2010-06-27 20:54:28 +00:00
Victor Stinner
45df820591 Merged revisions 80552-80556,80564-80566,80568-80571 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r80552 | victor.stinner | 2010-04-27 23:46:03 +0200 (mar., 27 avril 2010) | 3 lines

  Issue #7449, part 1: fix test_support.py for Python compiled without thread
........
  r80553 | victor.stinner | 2010-04-27 23:47:01 +0200 (mar., 27 avril 2010) | 1 line

  Issue #7449, part 2: regrtest.py -j option requires thread support
........
  r80554 | victor.stinner | 2010-04-27 23:51:26 +0200 (mar., 27 avril 2010) | 9 lines

  Issue #7449 part 3, test_doctest: import trace module in test_coverage()

  Import trace module fail if the threading module is missing. test_coverage() is
  only used if test_doctest.py is used with the -c option. This commit allows to
  execute the test suite without thread support.

  Move "import trace" in test_coverage() and use
  test_support.import_module('trace').
........
  r80555 | victor.stinner | 2010-04-27 23:56:26 +0200 (mar., 27 avril 2010) | 6 lines

  Issue #7449, part 4: skip test_multiprocessing if thread support is disabled

  import threading after _multiprocessing to raise a more revelant error message:
  "No module named _multiprocessing". _multiprocessing is not compiled without
  thread support.
........
  r80556 | victor.stinner | 2010-04-28 00:01:24 +0200 (mer., 28 avril 2010) | 8 lines

  Issue #7449, part 5: split Test.test_open() of ctypes/test/test_errno.py

   * Split Test.test_open() in 2 functions: test_open() and test_thread_open()
   * Skip test_open() and test_thread_open() if we are unable to find the C
     library
   * Skip test_thread_open() if thread support is disabled
   * Use unittest.skipUnless(os.name == "nt", ...) on test_GetLastError()
........
  r80564 | victor.stinner | 2010-04-28 00:59:35 +0200 (mer., 28 avril 2010) | 4 lines

  Issue #7449, part 6: fix test_hashlib for missing threading module

  Move @test_support.reap_thread decorator from test_main() to test_threaded_hashing().
........
  r80565 | victor.stinner | 2010-04-28 01:01:29 +0200 (mer., 28 avril 2010) | 6 lines

  Issue #7449, part 7: simplify threading detection in test_capi

   * Skip TestPendingCalls if threading module is missing
   * Test if threading module is present or not, instead of test the presence of
     _testcapi._test_thread_state
........
  r80566 | victor.stinner | 2010-04-28 01:03:16 +0200 (mer., 28 avril 2010) | 4 lines

  Issue #7449, part 8: don't skip the whole test_asynchat if threading is missing

  TestFifo can be executed without the threading module
........
  r80568 | victor.stinner | 2010-04-28 01:14:58 +0200 (mer., 28 avril 2010) | 6 lines

  Issue #7449, part 9: fix test_xmlrpclib for missing threading module

   * Skip testcases using threads if threading module is missing
   * Use "http://" instead of URL in ServerProxyTestCase if threading is missing
     because URL is not set in this case
........
  r80569 | victor.stinner | 2010-04-28 01:33:58 +0200 (mer., 28 avril 2010) | 6 lines

  Partial revert of r80556 (Issue #7449, part 5, fix ctypes test)

  Rewrite r80556: the thread test have to be executed just after the test on
  libc_open() and so the test cannot be splitted in two functions (without
  duplicating code, and I don't want to duplicate code).
........
  r80570 | victor.stinner | 2010-04-28 01:51:16 +0200 (mer., 28 avril 2010) | 8 lines

  Issue #7449, part 10: test_cmd imports trace module using test_support.import_module()

  Use test_support.import_module() instead of import to raise a SkipTest
  exception if the import fail. Import trace fails if the threading module is
  missing.

  See also part 3: test_doctest: import trace module in test_coverage().
........
  r80571 | victor.stinner | 2010-04-28 01:55:59 +0200 (mer., 28 avril 2010) | 6 lines

  Issue #7449, last part (11): fix many tests if thread support is disabled

   * Use try/except ImportError or test_support.import_module() to import thread
     and threading modules
   * Add @unittest.skipUnless(threading, ...) to testcases using threads
........
2010-04-28 22:31:17 +00:00
Benjamin Peterson
22005fc5ba Merged revisions 79279,79284,79293,79373,79376,79379,79876,79888 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk

........
  r79279 | vinay.sajip | 2010-03-22 07:33:08 -0500 (Mon, 22 Mar 2010) | 1 line

  Issue #8200: logging: Handle errors when multiprocessing is not fully loaded when logging occurs.
........
  r79284 | vinay.sajip | 2010-03-22 08:02:28 -0500 (Mon, 22 Mar 2010) | 1 line

  Issue #8201: logging: Handle config errors when non-ASCII and Unicode logger names exist at the same time.
........
  r79293 | vinay.sajip | 2010-03-22 10:29:01 -0500 (Mon, 22 Mar 2010) | 1 line

  logging: Added getChild utility method to Logger and added isEnabledFor method to LoggerAdapter.
........
  r79373 | vinay.sajip | 2010-03-24 09:31:21 -0500 (Wed, 24 Mar 2010) | 1 line

  logging: Added LOG_FTP for SysLogHandler and updated documentation.
........
  r79376 | vinay.sajip | 2010-03-24 10:10:40 -0500 (Wed, 24 Mar 2010) | 1 line

  logging: Documentation tweak.
........
  r79379 | vinay.sajip | 2010-03-24 12:36:35 -0500 (Wed, 24 Mar 2010) | 1 line

  logging: Updated SysLogHandler documentation.
........
  r79876 | vinay.sajip | 2010-04-06 17:32:37 -0500 (Tue, 06 Apr 2010) | 1 line

  Issue #8327: logging: Clarification of propagation functionality in documentation.
........
  r79888 | vinay.sajip | 2010-04-07 04:40:52 -0500 (Wed, 07 Apr 2010) | 1 line

  Issue #8331: logging: fixed some grammatical errors in documentation.
........
2010-04-11 16:25:06 +00:00