[Zconfig] SVN: ZConfig/trunk/ZConfig/components/logger/tests/test_logger.py add a comment about the expectations of the tests

Fred Drake fdrake at gmail.com
Thu Jun 11 10:15:29 EDT 2009


Log message for revision 100871:
  add a comment about the expectations of the tests
  

Changed:
  U   ZConfig/trunk/ZConfig/components/logger/tests/test_logger.py

-=-
Modified: ZConfig/trunk/ZConfig/components/logger/tests/test_logger.py
===================================================================
--- ZConfig/trunk/ZConfig/components/logger/tests/test_logger.py	2009-06-11 13:05:53 UTC (rev 100870)
+++ ZConfig/trunk/ZConfig/components/logger/tests/test_logger.py	2009-06-11 14:15:28 UTC (rev 100871)
@@ -636,6 +636,14 @@
     suite.addTest(doctest.DocTestSuite())
     suite.addTest(unittest.makeSuite(TestConfig))
     if os.name != "nt":
+        # Though log files can be closed and re-opened on Windows, these
+        # tests expect to be able to move the underlying files out from
+        # underneath the logger while open.  That's not possible on
+        # Windows.
+        #
+        # Different tests are needed that only test that close/re-open
+        # operations are performed by the handler; those can be run on
+        # any platform.
         suite.addTest(unittest.makeSuite(TestReopeningLogfiles))
         suite.addTest(unittest.makeSuite(TestReopeningRotatingLogfiles))
     return suite



More information about the ZConfig mailing list