tests: Remove commented out tests so test script is not too big.

This commit is contained in:
Damien George 2016-02-12 23:39:39 +00:00 committed by Paul Sokolovsky
parent 14848ffa12
commit fbb3c190f9
1 changed files with 0 additions and 180 deletions

View File

@ -28,36 +28,6 @@ try:
except AttributeError: except AttributeError:
print("Caught 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: try:
raise EOFError raise EOFError
except Exception: except Exception:
@ -68,16 +38,6 @@ try:
except EOFError: except EOFError:
print("Caught EOFError") print("Caught EOFError")
#try:
# raise EnvironmentError
#except Exception:
# print("Caught EnvironmentError via Exception")
#try:
# raise EnvironmentError
#except EnvironmentError:
# print("Caught EnvironmentError")
try: try:
raise Exception raise Exception
except BaseException: except BaseException:
@ -88,36 +48,6 @@ try:
except Exception: except Exception:
print("Caught 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: try:
raise ImportError raise ImportError
except Exception: except Exception:
@ -128,16 +58,6 @@ try:
except ImportError: except ImportError:
print("Caught ImportError") print("Caught ImportError")
#try:
# raise ImportWarning
#except Warning:
# print("Caught ImportWarning via Warning")
#try:
# raise ImportWarning
#except ImportWarning:
# print("Caught ImportWarning")
try: try:
raise IndentationError raise IndentationError
except SyntaxError: except SyntaxError:
@ -228,36 +148,6 @@ try:
except OverflowError: except OverflowError:
print("Caught 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: try:
raise RuntimeError raise RuntimeError
except Exception: except Exception:
@ -268,16 +158,6 @@ try:
except RuntimeError: except RuntimeError:
print("Caught RuntimeError") print("Caught RuntimeError")
#try:
# raise RuntimeWarning
#except Warning:
# print("Caught RuntimeWarning via Warning")
#try:
# raise RuntimeWarning
#except RuntimeWarning:
# print("Caught RuntimeWarning")
try: try:
raise SyntaxError raise SyntaxError
except Exception: except Exception:
@ -288,36 +168,6 @@ try:
except SyntaxError: except SyntaxError:
print("Caught 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: try:
raise TypeError raise TypeError
except Exception: except Exception:
@ -328,26 +178,6 @@ try:
except TypeError: except TypeError:
print("Caught 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: try:
raise ValueError raise ValueError
except Exception: except Exception:
@ -358,16 +188,6 @@ try:
except ValueError: except ValueError:
print("Caught ValueError") print("Caught ValueError")
#try:
# raise Warning
#except Exception:
# print("Caught Warning via Exception")
#try:
# raise Warning
#except Warning:
# print("Caught Warning")
try: try:
raise ZeroDivisionError raise ZeroDivisionError
except ArithmeticError: except ArithmeticError: