- 05 Mar, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
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.
-
- 03 Mar, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
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.
-
- 09 Şub, 2006 1 kayıt (commit)
-
-
Vinay Sajip yazdı
-
- 07 Şub, 2006 1 kayıt (commit)
-
-
Vinay Sajip yazdı
-
- 05 Şub, 2006 1 kayıt (commit)
-
-
Neal Norwitz yazdı
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.
-
- 29 Ock, 2006 3 kayıt (commit)
-
-
Tim Peters yazdı
-
Martin v. Löwis yazdı
-
Martin v. Löwis yazdı
-
- 20 Ock, 2006 1 kayıt (commit)
-
-
Vinay Sajip yazdı
Added a test for the ability to specify a class attribute in Formatter configuration. Contributed by Shane Hathaway.
-
- 16 Ock, 2006 1 kayıt (commit)
-
-
Vinay Sajip yazdı
-
- 30 Ara, 2005 1 kayıt (commit)
-
-
Tim Peters yazdı
the tests. This stops the confusing/annoying: No handlers could be found for logger "cookielib" message we got whenever some test running after test_logging happened to use cookielib.py (when not using regrtest's -r, this happened during test_urllib2; when using -r, it varied).
-
- 04 Agu, 2004 1 kayıt (commit)
-
-
Vinay Sajip yazdı
Close handlers and tidy up loggers by removing closed handlers - to avoid problems when run twice (SF #1002537)
-
- 02 Haz, 2004 1 kayıt (commit)
-
-
Vinay Sajip yazdı
-
- 20 Şub, 2004 1 kayıt (commit)
-
-
Vinay Sajip yazdı
-
- 23 Tem, 2003 2 kayıt (commit)
-
-
Tim Peters yazdı
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.
-
Tim Peters yazdı
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.
-
- 18 Tem, 2003 1 kayıt (commit)
-
-
Jeremy Hylton yazdı
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.
-
- 27 Haz, 2003 1 kayıt (commit)
-
-
Raymond Hettinger yazdı
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).
-
- 30 Nis, 2003 1 kayıt (commit)
-
-
Brett Cannon yazdı
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 .
-
- 26 Nis, 2003 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 25 Nis, 2003 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 18 Şub, 2003 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Mostly rename WARN -> WARNING Other misc tweaks Update tests (not in original patch)
-
- 21 Ock, 2003 1 kayıt (commit)
-
-
Guido van Rossum yazdı
-
- 15 Ock, 2003 1 kayıt (commit)
-
-
Jack Jansen yazdı
so just continue testing. Fixes #668787.
-
- 05 Ock, 2003 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Adding try/except allows the test to pass
-
- 02 Ock, 2003 1 kayıt (commit)
-
-
Neal Norwitz yazdı
Add a test for logging from Vinay Sajip (module author)
-