Issue #12068: Fix appears to have worked; added more diagnostics for rare failures.

This commit is contained in:
Vinay Sajip 2011-05-13 12:16:04 +01:00
parent db3dd8a6cc
commit a552ca6fd0
1 changed files with 1 additions and 0 deletions

View File

@ -3528,6 +3528,7 @@ class TimedRotatingFileHandlerTest(BaseFileTest):
#print additional diagnostics #print additional diagnostics
dn = os.path.dirname(self.fn) dn = os.path.dirname(self.fn)
files = [f for f in os.listdir(dn) if f.startswith(self.fn)] files = [f for f in os.listdir(dn) if f.startswith(self.fn)]
print('Test time: %s' % now.strftime("%Y-%m-%d %H-%M-%S"))
print('The only matching files are: %s' % files) print('The only matching files are: %s' % files)
self.assertTrue(found, msg=msg) self.assertTrue(found, msg=msg)