summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_logging.py
Commit message (Collapse)AuthorAgeFilesLines
* Close handlers and tidy up loggers by removing closed handlers - to avoid ↵Vinay Sajip2004-08-041-5/+11
| | | | problems when run twice (SF #1002537)
* Copyright year changedVinay Sajip2004-06-021-1/+1
|
* Socket handler closed prior to end of test.Vinay Sajip2004-02-201-0/+1
|
* locale-restoration code: Don't leave comparison to None implicit. ForTim Peters2003-07-231-1/+1
| | | | | all I know, the original locale may be '' (I don't think that's possible, but ...), and if so we would certainly want to restore it.
* Fred wasn't kidding -- there really are docs for the locale module <wink>.Tim Peters2003-07-231-11/+20
| | | | | | | | | | | | | | Obtain the original locale in the documented way. This way actually works for me. Restore the original locale at the end, instead of forcing to "C". Move the locale fiddling into the test driver instead of doing it as a side effect of merely importing the module. I don't know why the test is mucking with locale (and also added a comment saying so), but it surely has no justification for doing that as an import side-effect. Now whenever the locale-changing code executes, the locale-restoring code will also get run.
* Restore the locale to "C" on exit.Jeremy Hylton2003-07-181-2/+5
| | | | | | If this doesn't happen, it leaves the locale in a state that can cause other tests to fail. For example, running test_strptime, test_logging, and test_time in that order.
* SF patch #761519: Fixes for bugs 760703 and 757821Raymond Hettinger2003-06-271-2/+1
| | | | | | | | | | | | | | | | | | SF bug #760703: SocketHandler and LogRecord don't work well together SF bug #757821: logging module docs Applied Vinay Sajip's patch with a few minor fixups and a NEWS item. Patched __init__.py - added new function makeLogRecord (for bug report 760703). Patched handlers.py - updated some docstrings and deleted some old commented-out code. Patched test_logging.py to make use of makeLogRecord. Patched liblogging.tex to fill documentation gaps (both 760703 and bug 757821).
* Change from a threading.Condition object to a threading.Event object forBrett Cannon2003-04-301-6/+3
| | | | | | | signalling when the TCP server is done. Should hopefully solve hanging issues for Solaris 8 & 9. Solves the apparent hanging issue with OS X. Closes patch #729988 .
* Merge back from r23b1-branchGuido van Rossum2003-04-261-0/+2
|
* New version from Vinaj, should solve the threading problems (hopefully).Guido van Rossum2003-04-251-5/+16
|
* SF patch #687683, Patches to logging (updates from Vinay)Neal Norwitz2003-02-181-2/+4
| | | | | | Mostly rename WARN -> WARNING Other misc tweaks Update tests (not in original patch)
* Fix from Vinaj for the "writing to closed file" errors. SF 670390.Guido van Rossum2003-01-211-10/+14
|
* On Mac OS X calling setlocale will raise locale.Error. This isn't fatal,Jack Jansen2003-01-151-1/+2
| | | | so just continue testing. Fixes #668787.
* At least one Solaris box in the snake farm only supports "C" locale.Neal Norwitz2003-01-051-1/+5
| | | | Adding try/except allows the test to pass
* SF #660795Neal Norwitz2003-01-021-0/+459
Add a test for logging from Vinay Sajip (module author)