[Python-Dev] test_logging failures

Guido van Rossum guido@python.org
Tue, 07 Jan 2003 08:48:48 -0500


I suddenly see spectacular failures in the logging module on Linux.
Does anybody know what's up with that?

$ ./python ../Lib/test/regrtest.py test_logging.py
test_logging
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
test test_logging produced unexpected output:
**********************************************************************
*** lines 490-515 of expected output missing:
- ERR -> CRITICAL: Message 0 (via logrecv.tcp.ERR)
- ERR -> ERROR: Message 1 (via logrecv.tcp.ERR)
- INF -> CRITICAL: Message 2 (via logrecv.tcp.INF)
- INF -> ERROR: Message 3 (via logrecv.tcp.INF)
- INF -> WARN: Message 4 (via logrecv.tcp.INF)
- INF -> INFO: Message 5 (via logrecv.tcp.INF)
- INF.UNDEF -> CRITICAL: Message 6 (via logrecv.tcp.INF.UNDEF)
- INF.UNDEF -> ERROR: Message 7 (via logrecv.tcp.INF.UNDEF)
- INF.UNDEF -> WARN: Message 8 (via logrecv.tcp.INF.UNDEF)
- INF.UNDEF -> INFO: Message 9 (via logrecv.tcp.INF.UNDEF)
- INF.ERR -> CRITICAL: Message 10 (via logrecv.tcp.INF.ERR)
- INF.ERR -> ERROR: Message 11 (via logrecv.tcp.INF.ERR)
- INF.ERR.UNDEF -> CRITICAL: Message 12 (via logrecv.tcp.INF.ERR.UNDEF)
- INF.ERR.UNDEF -> ERROR: Message 13 (via logrecv.tcp.INF.ERR.UNDEF)
- DEB -> CRITICAL: Message 14 (via logrecv.tcp.DEB)
- DEB -> ERROR: Message 15 (via logrecv.tcp.DEB)
- DEB -> WARN: Message 16 (via logrecv.tcp.DEB)
- DEB -> INFO: Message 17 (via logrecv.tcp.DEB)
- DEB -> DEBUG: Message 18 (via logrecv.tcp.DEB)
- UNDEF -> CRITICAL: Message 19 (via logrecv.tcp.UNDEF)
- UNDEF -> ERROR: Message 20 (via logrecv.tcp.UNDEF)
- UNDEF -> WARN: Message 21 (via logrecv.tcp.UNDEF)
- UNDEF -> INFO: Message 22 (via logrecv.tcp.UNDEF)
- INF.BADPARENT.UNDEF -> CRITICAL: Message 23 (via logrecv.tcp.INF.BADPARENT.UNDEF)
- INF.BADPARENT -> CRITICAL: Message 24 (via logrecv.tcp.INF.BADPARENT)
- INF -> INFO: Messages should bear numbers 0 through 24. (via logrecv.tcp.INF)
**********************************************************************
1 test failed:
    test_logging
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
Traceback (most recent call last):
  File "/home/guido/projects/trunk/Lib/logging/__init__.py", line 645, in emit
    self.stream.write("%s\n" % msg)
ValueError: I/O operation on closed file
$

--Guido van Rossum (home page: http://www.python.org/~guido/)