From f2a60daea136c2e8c6ce33522822a8feca737779 Mon Sep 17 00:00:00 2001 From: Daniel Black Date: Wed, 28 Aug 2013 12:55:21 +1000 Subject: [PATCH] TST/BF: assertIsNotNone replaced with assertNotEqual for python 2.4 compatibility --- testcases/datedetectortestcase.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testcases/datedetectortestcase.py b/testcases/datedetectortestcase.py index a18c87aa..457b90e9 100644 --- a/testcases/datedetectortestcase.py +++ b/testcases/datedetectortestcase.py @@ -89,7 +89,7 @@ class DateDetectorTest(unittest.TestCase): #[ yoh: on [:6] see in above test logtime = self.__datedetector.getTime(log) - self.assertIsNotNone(logtime, "getTime retrieved nothing: failure for %s" % sdate) + self.assertNotEqual(logtime, None, "getTime retrieved nothing: failure for %s" % sdate) self.assertEqual(logtime[:6], date[:6], "getTime comparison failure for %s" % sdate) self.assertEqual(self.__datedetector.getUnixTime(log), dateUnix, "getUnixTime failure for %s" % sdate)