commit b0ac1b580f86b05d1071fe698d573c835c74cdb1 Author: Isis Lovecruft isis@torproject.org Date: Thu May 1 00:45:25 2014 +0000
Call result of _getRotatingFileHandler() in unittest; it returns a partial() now. --- lib/bridgedb/test/test_util.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/bridgedb/test/test_util.py b/lib/bridgedb/test/test_util.py index 354a4cd..a18e1c6 100644 --- a/lib/bridgedb/test/test_util.py +++ b/lib/bridgedb/test/test_util.py @@ -50,7 +50,7 @@ class MiscLoggingUtilTests(unittest.TestCase): logHandler = util._getRotatingFileHandler(filename) self.assertTrue(os.path.isfile(filename)) self.assertEqual(os.stat_result(os.stat(filename)).st_mode, 33152) - self.assertIsInstance(logHandler, + self.assertIsInstance(logHandler(), util.logging.handlers.RotatingFileHandler)
def test_configureLogging(self):
tor-commits@lists.torproject.org