1. 05 Mar, 2006 1 kayıt (commit)
    • Neal Norwitz's avatar
      Backout the last hack and add in this new one. · 5bab0f88
      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.
      5bab0f88
  2. 03 Mar, 2006 1 kayıt (commit)
  3. 09 Şub, 2006 1 kayıt (commit)
  4. 07 Şub, 2006 1 kayıt (commit)
  5. 05 Şub, 2006 1 kayıt (commit)
    • Neal Norwitz's avatar
      Get test_logging to not hang when running under regrtest.py -R :: · 55cd82fe
      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.
      55cd82fe
  6. 29 Ock, 2006 3 kayıt (commit)
  7. 20 Ock, 2006 1 kayıt (commit)
  8. 16 Ock, 2006 1 kayıt (commit)
  9. 30 Ara, 2005 1 kayıt (commit)
    • Tim Peters's avatar
      test_main(): Restore the original root logger level after running · 0cdc3d88
      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).
      0cdc3d88
  10. 04 Agu, 2004 1 kayıt (commit)
  11. 02 Haz, 2004 1 kayıt (commit)
  12. 20 Şub, 2004 1 kayıt (commit)
  13. 23 Tem, 2003 2 kayıt (commit)
    • Tim Peters's avatar
      locale-restoration code: Don't leave comparison to None implicit. For · 9390dd5b
      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.
      9390dd5b
    • Tim Peters's avatar
      Fred wasn't kidding -- there really are docs for the locale module <wink>. · 36f7e938
      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.
      36f7e938
  14. 18 Tem, 2003 1 kayıt (commit)
    • Jeremy Hylton's avatar
      Restore the locale to "C" on exit. · 096d986f
      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.
      096d986f
  15. 27 Haz, 2003 1 kayıt (commit)
    • Raymond Hettinger's avatar
      SF patch #761519: Fixes for bugs 760703 and 757821 · 6f3eaa67
      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).
      6f3eaa67
  16. 30 Nis, 2003 1 kayıt (commit)
  17. 26 Nis, 2003 1 kayıt (commit)
  18. 25 Nis, 2003 1 kayıt (commit)
  19. 18 Şub, 2003 1 kayıt (commit)
  20. 21 Ock, 2003 1 kayıt (commit)
  21. 15 Ock, 2003 1 kayıt (commit)
  22. 05 Ock, 2003 1 kayıt (commit)
  23. 02 Ock, 2003 1 kayıt (commit)
    • Neal Norwitz's avatar
      SF #660795 · b4a2df0c
      Neal Norwitz yazdı
      Add a test for logging from Vinay Sajip (module author)
      b4a2df0c