Browse Source

assert_ deprecated; use assertTrue instead

Nick Pilon 11 years ago
parent
commit
54c54daad1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      supervisor/tests/test_loggers.py

+ 2 - 2
supervisor/tests/test_loggers.py

@@ -182,7 +182,7 @@ class RotatingFileHandlerTests(FileHandlerTests):
         record = self._makeLogRecord('a' * 4)
 
         handler.emit(record) # 4 bytes
-        self.assert_(os.path.exists(self.filename))
+        self.assertTrue(os.path.exists(self.filename))
         self.assertFalse(os.path.exists(self.filename + '.1'))
 
         # Someone removes the active log file! :-(
@@ -190,7 +190,7 @@ class RotatingFileHandlerTests(FileHandlerTests):
         self.assertFalse(os.path.exists(self.filename))
 
         handler.emit(record) # 8 bytes, do rollover
-        self.assert_(os.path.exists(self.filename))
+        self.assertTrue(os.path.exists(self.filename))
         self.assertFalse(os.path.exists(self.filename + '.1'))