summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics/exceptpoly.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2016-03-15 13:07:41 +0000
committerDamien George <damien.p.george@gmail.com>2016-03-15 13:07:41 +0000
commitab69ed7dac1bf0ef36238b6289d436e9932180bc (patch)
treee20c26cc428d26d056097cbfc11a49bb0f178ec1 /tests/basics/exceptpoly.py
parent9996adc37d3f518a30e28cbdfead71a5019e6a60 (diff)
downloadmicropython-ab69ed7dac1bf0ef36238b6289d436e9932180bc.tar.gz
micropython-ab69ed7dac1bf0ef36238b6289d436e9932180bc.zip
tests: Split large tests into smaller files, to run with a small heap.
All tests in basics/ directory can now run and pass using 64-bit unix port with only a 16k heap (./run-tests --heapsize 16k). Tests in this directory should remain small so they can be used for ports with a small heap.
Diffstat (limited to 'tests/basics/exceptpoly.py')
-rw-r--r--tests/basics/exceptpoly.py101
1 files changed, 0 insertions, 101 deletions
diff --git a/tests/basics/exceptpoly.py b/tests/basics/exceptpoly.py
index bf463fbee1..9e210de80f 100644
--- a/tests/basics/exceptpoly.py
+++ b/tests/basics/exceptpoly.py
@@ -97,104 +97,3 @@ try:
raise LookupError
except LookupError:
print("Caught LookupError")
-
-try:
- raise MemoryError
-except Exception:
- print("Caught MemoryError via Exception")
-
-try:
- raise MemoryError
-except MemoryError:
- print("Caught MemoryError")
-
-try:
- raise NameError
-except Exception:
- print("Caught NameError via Exception")
-
-try:
- raise NameError
-except NameError:
- print("Caught NameError")
-
-try:
- raise NotImplementedError
-except RuntimeError:
- print("Caught NotImplementedError via RuntimeError")
-
-try:
- raise NotImplementedError
-except NotImplementedError:
- print("Caught NotImplementedError")
-
-try:
- raise OSError
-except Exception:
- print("Caught OSError via Exception")
-
-try:
- raise OSError
-except OSError:
- print("Caught OSError")
-
-try:
- raise OverflowError
-except ArithmeticError:
- print("Caught OverflowError via ArithmeticError")
-
-try:
- raise OverflowError
-except OverflowError:
- print("Caught OverflowError")
-
-try:
- raise RuntimeError
-except Exception:
- print("Caught RuntimeError via Exception")
-
-try:
- raise RuntimeError
-except RuntimeError:
- print("Caught RuntimeError")
-
-try:
- raise SyntaxError
-except Exception:
- print("Caught SyntaxError via Exception")
-
-try:
- raise SyntaxError
-except SyntaxError:
- print("Caught SyntaxError")
-
-try:
- raise TypeError
-except Exception:
- print("Caught TypeError via Exception")
-
-try:
- raise TypeError
-except TypeError:
- print("Caught TypeError")
-
-try:
- raise ValueError
-except Exception:
- print("Caught ValueError via Exception")
-
-try:
- raise ValueError
-except ValueError:
- print("Caught ValueError")
-
-try:
- raise ZeroDivisionError
-except ArithmeticError:
- print("Caught ZeroDivisionError via ArithmeticError")
-
-try:
- raise ZeroDivisionError
-except ZeroDivisionError:
- print("Caught ZeroDivisionError")
-