summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue #8576: logging updated to remove usage of find_unused_port().Vinay Sajip2010-05-031-4/+5
|
* Issue #7449, last part (11): fix many tests if thread support is disabledVictor Stinner2010-04-271-2/+6
| | | | | | * Use try/except ImportError or test_support.import_module() to import thread and threading modules * Add @unittest.skipUnless(threading, ...) to testcases using threads
* logging: Added getChild utility method to Logger and added isEnabledFor ↵Vinay Sajip2010-03-221-1/+19
| | | | method to LoggerAdapter.
* Issue #8201: logging: Handle config errors when non-ASCII and Unicode logger ↵Vinay Sajip2010-03-221-0/+6
| | | | names exist at the same time.
* Added schema version test in dictConfig.Vinay Sajip2010-03-061-0/+84
|
* logging: gingerly re-enabling skipped tests after improving thread sync code ↵Vinay Sajip2010-02-081-2/+0
| | | | in configurator.
* Issue #7857: Another attempt to keep the buildbots happy.Vinay Sajip2010-02-081-1/+3
|
* logging: skipped listening tests because they're not working reliably.Vinay Sajip2010-02-081-0/+2
|
* Removed spurious print statement in test.Vinay Sajip2010-02-081-1/+0
|
* Remove unused imports in test modules.Georg Brandl2010-02-071-1/+0
|
* Issue #7868: logging: added loggerClass attribute to Manager.Vinay Sajip2010-02-071-5/+22
|
* make waiting for the server to start robustBenjamin Peterson2010-02-061-1/+1
|
* Remove unused imports from test_logging.Georg Brandl2010-02-061-3/+0
|
* Issue #7857: Gave server thread more time to get ready, and re-enabled a ↵Vinay Sajip2010-02-061-1/+2
| | | | skipped test.
* Issue #7857: Tentatively re-enabling one test to see effect on buildbots.Vinay Sajip2010-02-061-1/+1
|
* test_logging: minor tweaks to timeouts, listening tests marked as skipped.Vinay Sajip2010-02-051-3/+6
|
* Issue #7857: test_logging: listener tests disabled for now.Vinay Sajip2010-02-051-2/+2
|
* Issue #7857: test_logging: listener test now uses find_unused_port().Vinay Sajip2010-02-051-18/+20
|
* Added unit test for cfg:// resolution.Vinay Sajip2010-02-041-0/+33
|
* Logging: Implemented PEP 391.Vinay Sajip2010-02-041-9/+664
|
* More yearly updates.Georg Brandl2010-01-011-2/+2
|
* fix a few cases where automated fail -> assert translation messed upBenjamin Peterson2009-07-011-23/+23
| | | | Thanks Joe Amenta
* convert usage of fail* to assert*Benjamin Peterson2009-06-301-26/+26
|
* Issue #5768: Change to Unicode output logic and test case for same.Vinay Sajip2009-04-161-0/+1
|
* Issue #5695: Minor tweak to improve the code as suggested by Brett Cannon ↵Vinay Sajip2009-04-071-1/+1
| | | | and as implemented in the Py3K branch.
* Issue #5695: Moved logging.captureWarnings() call inside with statement in ↵Vinay Sajip2009-04-051-1/+1
| | | | WarningsTest.test_warnings.
* test_logging was blindly clearing the warnings filter. This causedBrett Cannon2009-04-011-22/+24
| | | | | PendingDeprecationWarnings to be spewed all over by unittest.failIf*(). Fix moves over to using warnings.catch_warning to protect the warnings filter.
* Issue #5170: Fixed Unicode output bug in logging and added test case. This ↵Vinay Sajip2009-02-081-2/+25
| | | | is a regression which did not occur in 2.5.
* Issue #4384: Added logging integration with warnings module using ↵Vinay Sajip2008-12-031-2/+29
| | | | captureWarnings(). This change includes a NullHandler which does nothing; it will be of use to library developers who want to avoid the "No handlers could be found for logger XXX" message which can appear if the library user doesn't configure logging.
* Issue #3809: Fixed spurious 'test.blah' file left behind by test_logging.Vinay Sajip2008-09-091-2/+2
|
* Issue #3772: Fixed regression problem in StreamHandler.emit().Vinay Sajip2008-09-041-1/+27
|
* Issue #3726: Allowed spaces in separators in logging configuration files.Vinay Sajip2008-09-031-0/+45
|
* Issue #3389: Allow resolving dotted names for handlers in logging ↵Vinay Sajip2008-07-181-2/+7
| | | | configuration files. Thanks to Philip Jenvey for the patch.
* socketserver renaming reversal part 3: move the module into the rightGeorg Brandl2008-05-241-1/+1
| | | | place and fix all references to it. Closes #2926.
* Updated all import statements to use the new socketserver module name.Alexandre Vassalotti2008-05-121-1/+1
| | | | | Renamed socketserver module in its own documentation. Renamed documentation references.
* Correctly call the base class tearDown();Amaury Forgeot d'Arc2008-03-291-0/+1
| | | | otherwise running test_logging twice produce the errors we see on all buildbots
* Refactor test_logging to use unittest. This should finally solve the flakinessBrett Cannon2008-03-031-2163/+751
| | | | | | issues. Thanks to Antoine Pitrou for the patch.
* Patch #2167 from calvin: Remove unused importsChristian Heimes2008-02-231-2/+2
|
* #2165: fix test_logging failure on some machines.Georg Brandl2008-02-231-23/+13
|
* Move test_logging over to doctest.Brett Cannon2008-02-171-446/+2005
| | | | Thanks to Christopher White from GHOP.
* Fix resource leak reported in SF #1516995.Vinay Sajip2007-03-111-0/+2
|
* Repair logging test spew caused by rev. 51206.Georg Brandl2006-08-121-2/+2
|
* Added duplicate call to fileConfig() to ensure that it cleans up after ↵Vinay Sajip2006-07-011-0/+2
| | | | itself correctly.
* Bug #1473625: stop cPickle making float dumps locale dependent in protocol 0.Georg Brandl2006-04-301-14/+5
| | | | | On the way, add a decorator to test_support to facilitate running single test functions in different locales with automatic cleanup.
* Backout the last hack and add in this new one.Neal Norwitz2006-03-051-14/+8
| | | | | | | | | | | | | | | The failure definitely seems timing related. This change *seems* to work. Since the failure isn't doesn't occur consistently, it's hard to tell. Running these tests on Solaris in this order: test_urllibnet test_operator test_cgi \ test_isinstance test_future test_ast test_logging generally caused a failure (about 50% of the time) before the sleep. I couldn't provoke the failure with the sleep. This should really be cleaned up by using threading.Events or something so it is not timing dependent and doesn't hang forever on failure.
* I think the test_logging failure on Solaris is timing related. We don'tNeal Norwitz2006-03-031-5/+14
| | | | | | | want to wait forever if we don't receive the last message. But we also don't want the test to fail if we shutdown too quickly. I can't reliably reproduce this failure, so I'm kinda guessing this is the problem. We'll see if this band-aid helps.
* Added lock acquisition/release around shared data structure manipulationVinay Sajip2006-02-091-19/+34
|
* Saved and restored logging._handlerList at the same time as saving/restoring ↵Vinay Sajip2006-02-071-0/+4
| | | | logging._handlers.
* Get test_logging to not hang when running under regrtest.py -R ::Neal Norwitz2006-02-051-4/+4
| | | | | | | | | | | | | | Not sure why/how _handlers/_handlerList is out of sync. This could indicate a deeper problem. In test_logging, the only absolutely necessary change to get working was tcpserver.abort = 1. But we don't want to wait infinitely to join the threads, so give a 2.0 second timeout. There doesn't appear to be a need for a local abort variable in serve_until_stopped, so just use the instance member. Note the problem is only on HEAD, not in 2.4.
* Whitespace normalization.Tim Peters2006-01-291-1/+1
|