File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -191,4 +191,5 @@ def testGetInstance(self):
191191 class MyFacade (Facade ):
192192 pass
193193
194- self .assertIsInstance (MyFacade .getInstance ("myFacade" ), MyFacade )
194+ # Use 'assertTrue' for Python 2.5 compatibility
195+ self .assertTrue (isinstance (MyFacade .getInstance ("myFacade" ), MyFacade ))
Original file line number Diff line number Diff line change @@ -110,12 +110,12 @@ def testSendNotificationNoBodyAndType(self):
110110 """NotifierTest: send notification without body and type"""
111111 try :
112112 self .notifier .sendNotification ("TestNotification" )
113- except Exception as e :
113+ except Exception , e : # Old-style 'except' for Python 2.5 compatibility
114114 self .fail (e )
115115
116116 def testSendNotificationNoType (self ):
117117 """NotifierTest: send notification without type"""
118118 try :
119119 self .notifier .sendNotification ("TestNotification" , 1 )
120- except Exception as e :
120+ except Exception , e : # Old-style 'except' for Python 2.5 compatibility
121121 self .fail (e )
You can’t perform that action at this time.
0 commit comments