summaryrefslogtreecommitdiffstatshomepage
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-02-12 23:39:39 +0000
committerPaul Sokolovsky <pfalcon@users.sourceforge.net>2016-03-06 06:00:28 +0200
commitfbb3c190f96e04643ac6d1a623ab3b2a628a8534 (patch)
tree4c375526f3dc89c2fca4b6c823ee2d382fea28b2
parent14848ffa1266bfb6f573968ed9ef6862a20bf37a (diff)
downloadmicropython-fbb3c190f96e04643ac6d1a623ab3b2a628a8534.tar.gz
micropython-fbb3c190f96e04643ac6d1a623ab3b2a628a8534.zip
tests: Remove commented out tests so test script is not too big.
-rw-r--r--tests/basics/exceptpoly.py180
1 files changed, 0 insertions, 180 deletions
diff --git a/tests/basics/exceptpoly.py b/tests/basics/exceptpoly.py
index b588c6b3bb..bf463fbee1 100644
--- a/tests/basics/exceptpoly.py
+++ b/tests/basics/exceptpoly.py
@@ -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: