@@ -645,7 +645,7 @@ def test_pep3110(self):
645645 try :
646646 raise IOError ("abc" )
647647 except TypeError as ValueError :
648- Fail ("IOError is not the same as TypeError" )
648+ self . fail ("IOError is not the same as TypeError" )
649649 except IOError :
650650 pass
651651 self .assertEqual (ValueError , orig_ValueError )
@@ -654,7 +654,7 @@ def test_pep3110(self):
654654 try :
655655 raise IOError ("abc" )
656656 except TypeError as ValueError :
657- Fail ("IOError is not the same as TypeError" )
657+ self . fail ("IOError is not the same as TypeError" )
658658 finally :
659659 pass
660660 except IOError :
@@ -693,7 +693,7 @@ def test_pep3110(self):
693693 try :
694694 raise IOError ("xyz" )
695695 except (TypeError , ValueError ) as e :
696- Fail ("IOError is not the same as TypeError or ValueError" )
696+ self . fail ("IOError is not the same as TypeError or ValueError" )
697697 except IOError :
698698 pass
699699 self .assertEqual (e , None )
@@ -702,7 +702,7 @@ def test_pep3110(self):
702702 try :
703703 raise IOError ("xyz" )
704704 except (TypeError , ValueError ) as e :
705- Fail ("IOError is not the same as TypeError or ValueError" )
705+ self . fail ("IOError is not the same as TypeError or ValueError" )
706706 finally :
707707 pass
708708 except IOError :
@@ -745,31 +745,31 @@ def test_pep3110(self):
745745 try :
746746 raise IOError ("abc" )
747747 except TypeError as e :
748- Fail ("IOError is not the same as TypeError" )
748+ self . fail ("IOError is not the same as TypeError" )
749749 except IOError as e :
750750 self .assertEqual (e .args [0 ], "abc" )
751751 e = None
752752
753753 try :
754754 raise IOError ("abc" )
755755 except TypeError as e :
756- Fail ("IOError is not the same as TypeError" )
756+ self . fail ("IOError is not the same as TypeError" )
757757 except IOError as e :
758758 self .assertEqual (e .args [0 ], "abc" )
759759 e = None
760760
761761 try :
762762 raise IOError ("abc" )
763763 except TypeError as e :
764- Fail ("IOError is not the same as TypeError" )
764+ self . fail ("IOError is not the same as TypeError" )
765765 except Exception as e :
766766 self .assertEqual (e .args [0 ], "abc" )
767767 e = None
768768
769769 try :
770770 raise IOError ("abc" )
771771 except TypeError as e :
772- Fail ("IOError is not the same as TypeError" )
772+ self . fail ("IOError is not the same as TypeError" )
773773 except :
774774 pass
775775
@@ -778,7 +778,7 @@ def test_pep3110(self):
778778 try :
779779 raise IOError ("abc" )
780780 except TypeError as e :
781- Fail ("IOError is not the same as TypeError" )
781+ self . fail ("IOError is not the same as TypeError" )
782782 except IOError as e :
783783 self .assertEqual (e .args [0 ], "abc" )
784784 e = None
@@ -787,7 +787,7 @@ def test_pep3110(self):
787787 try :
788788 raise IOError ("abc" )
789789 except TypeError as ValueError :
790- Fail ("IOError is not the same as TypeError" )
790+ self . fail ("IOError is not the same as TypeError" )
791791 except IOError as e :
792792 self .assertEqual (e .args [0 ], "abc" )
793793 e = None
@@ -796,7 +796,7 @@ def test_pep3110(self):
796796 try :
797797 raise IOError ("abc" )
798798 except TypeError as e :
799- Fail ("IOError is not the same as TypeError" )
799+ self . fail ("IOError is not the same as TypeError" )
800800 except IOError as e :
801801 self .assertEqual (e .args [0 ], "abc" )
802802 e = None
@@ -805,7 +805,7 @@ def test_pep3110(self):
805805 try :
806806 raise IOError ("abc" )
807807 except TypeError as ValueError :
808- Fail ("IOError is not the same as TypeError" )
808+ self . fail ("IOError is not the same as TypeError" )
809809 finally :
810810 pass
811811 except Exception as e :
@@ -816,7 +816,7 @@ def test_pep3110(self):
816816 try :
817817 raise IOError ("abc" )
818818 except TypeError as e :
819- Fail ("IOError is not the same as TypeError" )
819+ self . fail ("IOError is not the same as TypeError" )
820820 finally :
821821 pass
822822 except IOError :
@@ -964,14 +964,14 @@ def test_generatorexit(self):
964964 try :
965965 raise GeneratorExit ()
966966 except Exception :
967- Fail ("Should not have caught this GeneratorExit" )
967+ self . fail ("Should not have caught this GeneratorExit" )
968968 except GeneratorExit :
969969 pass
970970
971971 try :
972972 raise GeneratorExit ()
973973 except Exception :
974- Fail ("Should not have caught this GeneratorExit" )
974+ self . fail ("Should not have caught this GeneratorExit" )
975975 except GeneratorExit :
976976 pass
977977 finally :
0 commit comments