tests: Remove commented out tests so test script is not too big.
This commit is contained in:
parent
14848ffa12
commit
fbb3c190f9
|
@ -28,36 +28,6 @@ try:
|
|||
except AttributeError:
|
||||
print("Caught AttributeError")
|
||||
|
||||
#try:
|
||||
# raise BufferError
|
||||
#except Exception:
|
||||
# print("Caught BufferError via Exception")
|
||||
|
||||
#try:
|
||||
# raise BufferError
|
||||
#except BufferError:
|
||||
# print("Caught BufferError")
|
||||
|
||||
#try:
|
||||
# raise BytesWarning
|
||||
#except Warning:
|
||||
# print("Caught BytesWarning via Warning")
|
||||
|
||||
#try:
|
||||
# raise BytesWarning
|
||||
#except BytesWarning:
|
||||
# print("Caught BytesWarning")
|
||||
|
||||
#try:
|
||||
# raise DeprecationWarning
|
||||
#except Warning:
|
||||
# print("Caught DeprecationWarning via Warning")
|
||||
|
||||
#try:
|
||||
# raise DeprecationWarning
|
||||
#except DeprecationWarning:
|
||||
# print("Caught DeprecationWarning")
|
||||
|
||||
try:
|
||||
raise EOFError
|
||||
except Exception:
|
||||
|
@ -68,16 +38,6 @@ try:
|
|||
except EOFError:
|
||||
print("Caught EOFError")
|
||||
|
||||
#try:
|
||||
# raise EnvironmentError
|
||||
#except Exception:
|
||||
# print("Caught EnvironmentError via Exception")
|
||||
|
||||
#try:
|
||||
# raise EnvironmentError
|
||||
#except EnvironmentError:
|
||||
# print("Caught EnvironmentError")
|
||||
|
||||
try:
|
||||
raise Exception
|
||||
except BaseException:
|
||||
|
@ -88,36 +48,6 @@ try:
|
|||
except Exception:
|
||||
print("Caught Exception")
|
||||
|
||||
#try:
|
||||
# raise FloatingPointError
|
||||
#except ArithmeticError:
|
||||
# print("Caught FloatingPointError via ArithmeticError")
|
||||
|
||||
#try:
|
||||
# raise FloatingPointError
|
||||
#except FloatingPointError:
|
||||
# print("Caught FloatingPointError")
|
||||
|
||||
#try:
|
||||
# raise FutureWarning
|
||||
#except Warning:
|
||||
# print("Caught FutureWarning via Warning")
|
||||
|
||||
#try:
|
||||
# raise FutureWarning
|
||||
#except FutureWarning:
|
||||
# print("Caught FutureWarning")
|
||||
|
||||
#try:
|
||||
# raise IOError
|
||||
#except Exception:
|
||||
# print("Caught IOError via Exception")
|
||||
|
||||
#try:
|
||||
# raise IOError
|
||||
#except IOError:
|
||||
# print("Caught IOError")
|
||||
|
||||
try:
|
||||
raise ImportError
|
||||
except Exception:
|
||||
|
@ -128,16 +58,6 @@ try:
|
|||
except ImportError:
|
||||
print("Caught ImportError")
|
||||
|
||||
#try:
|
||||
# raise ImportWarning
|
||||
#except Warning:
|
||||
# print("Caught ImportWarning via Warning")
|
||||
|
||||
#try:
|
||||
# raise ImportWarning
|
||||
#except ImportWarning:
|
||||
# print("Caught ImportWarning")
|
||||
|
||||
try:
|
||||
raise IndentationError
|
||||
except SyntaxError:
|
||||
|
@ -228,36 +148,6 @@ try:
|
|||
except OverflowError:
|
||||
print("Caught OverflowError")
|
||||
|
||||
#try:
|
||||
# raise PendingDeprecationWarning
|
||||
#except Warning:
|
||||
# print("Caught PendingDeprecationWarning via Warning")
|
||||
|
||||
#try:
|
||||
# raise PendingDeprecationWarning
|
||||
#except PendingDeprecationWarning:
|
||||
# print("Caught PendingDeprecationWarning")
|
||||
|
||||
#try:
|
||||
# raise ReferenceError
|
||||
#except Exception:
|
||||
# print("Caught ReferenceError via Exception")
|
||||
|
||||
#try:
|
||||
# raise ReferenceError
|
||||
#except ReferenceError:
|
||||
# print("Caught ReferenceError")
|
||||
|
||||
#try:
|
||||
# raise ResourceWarning
|
||||
#except Warning:
|
||||
# print("Caught ResourceWarning via Warning")
|
||||
|
||||
#try:
|
||||
# raise ResourceWarning
|
||||
#except ResourceWarning:
|
||||
# print("Caught ResourceWarning")
|
||||
|
||||
try:
|
||||
raise RuntimeError
|
||||
except Exception:
|
||||
|
@ -268,16 +158,6 @@ try:
|
|||
except RuntimeError:
|
||||
print("Caught RuntimeError")
|
||||
|
||||
#try:
|
||||
# raise RuntimeWarning
|
||||
#except Warning:
|
||||
# print("Caught RuntimeWarning via Warning")
|
||||
|
||||
#try:
|
||||
# raise RuntimeWarning
|
||||
#except RuntimeWarning:
|
||||
# print("Caught RuntimeWarning")
|
||||
|
||||
try:
|
||||
raise SyntaxError
|
||||
except Exception:
|
||||
|
@ -288,36 +168,6 @@ try:
|
|||
except SyntaxError:
|
||||
print("Caught SyntaxError")
|
||||
|
||||
#try:
|
||||
# raise SyntaxWarning
|
||||
#except Warning:
|
||||
# print("Caught SyntaxWarning via Warning")
|
||||
|
||||
#try:
|
||||
# raise SyntaxWarning
|
||||
#except SyntaxWarning:
|
||||
# print("Caught SyntaxWarning")
|
||||
|
||||
#try:
|
||||
# raise SystemError
|
||||
#except Exception:
|
||||
# print("Caught SystemError via Exception")
|
||||
|
||||
#try:
|
||||
# raise SystemError
|
||||
#except SystemError:
|
||||
# print("Caught SystemError")
|
||||
|
||||
#try:
|
||||
# raise TabError
|
||||
#except IndentationError:
|
||||
# print("Caught TabError via IndentationError")
|
||||
|
||||
#try:
|
||||
# raise TabError
|
||||
#except TabError:
|
||||
# print("Caught TabError")
|
||||
|
||||
try:
|
||||
raise TypeError
|
||||
except Exception:
|
||||
|
@ -328,26 +178,6 @@ try:
|
|||
except TypeError:
|
||||
print("Caught TypeError")
|
||||
|
||||
#try:
|
||||
# raise UnboundLocalError
|
||||
#except NameError:
|
||||
# print("Caught UnboundLocalError via NameError")
|
||||
|
||||
#try:
|
||||
# raise UnboundLocalError
|
||||
#except UnboundLocalError:
|
||||
# print("Caught UnboundLocalError")
|
||||
|
||||
#try:
|
||||
# raise UserWarning
|
||||
#except Warning:
|
||||
# print("Caught UserWarning via Warning")
|
||||
|
||||
#try:
|
||||
# raise UserWarning
|
||||
#except UserWarning:
|
||||
# print("Caught UserWarning")
|
||||
|
||||
try:
|
||||
raise ValueError
|
||||
except Exception:
|
||||
|
@ -358,16 +188,6 @@ try:
|
|||
except ValueError:
|
||||
print("Caught ValueError")
|
||||
|
||||
#try:
|
||||
# raise Warning
|
||||
#except Exception:
|
||||
# print("Caught Warning via Exception")
|
||||
|
||||
#try:
|
||||
# raise Warning
|
||||
#except Warning:
|
||||
# print("Caught Warning")
|
||||
|
||||
try:
|
||||
raise ZeroDivisionError
|
||||
except ArithmeticError:
|
||||
|
|
Loading…
Reference in New Issue