ZConfig.components.logger.tests.test_logger.TestReopeningLogfilesBase.test_filehandler_reopen() fails
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ZConfig |
Fix Released
|
Low
|
Unassigned |
Bug Description
ZConfig.
$ nosetests-2.7
.......
=======
ERROR: test_filehandle
-------
Traceback (most recent call last):
File "/tmp/ZConfig-
h = self.handler_
AttributeError: 'TestReopeningL
-------
Ran 175 tests in 0.977s
FAILED (errors=1)
I'm attaching the patch, which seems to work.
This is a problem with test discovery, not the tests themselves.
Because nose is just guessing what tests to run based on the classes,
it's getting it wrong; the "Base" at the end of the class name hints at
that.
I'll refactor so nose doesn't think TestReopeningLo gfilesBase is a
test class.