summaryrefslogtreecommitdiffstatshomepage
path: root/tests/float/float_divmod_relaxed.py
diff options
context:
space:
mode:
authorDamien George <damien.p.george@gmail.com>2015-08-25 18:18:57 +0100
committerDamien George <damien.p.george@gmail.com>2015-08-29 23:13:28 +0100
commit1d350b8ac6c65bd53115bfdc7511e4028f3c69ac (patch)
treeb4f06dceff7101c8cacdb9e81b0fa30eca4f1735 /tests/float/float_divmod_relaxed.py
parenta488c266c34f70ab6bff86b1f31f1d1a343ab1b8 (diff)
downloadmicropython-1d350b8ac6c65bd53115bfdc7511e4028f3c69ac.tar.gz
micropython-1d350b8ac6c65bd53115bfdc7511e4028f3c69ac.zip
tests: Add a few tests for bool, bytearray, float to improve coverage.
Diffstat (limited to 'tests/float/float_divmod_relaxed.py')
-rw-r--r--tests/float/float_divmod_relaxed.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/float/float_divmod_relaxed.py b/tests/float/float_divmod_relaxed.py
index 7054d2ca67..a9450fa2c4 100644
--- a/tests/float/float_divmod_relaxed.py
+++ b/tests/float/float_divmod_relaxed.py
@@ -25,3 +25,9 @@ for i in range(25):
for j in range(25):
y = (j - 12.5) / 6
test(x, y)
+
+# test division by zero error
+try:
+ divmod(1.0, 0)
+except ZeroDivisionError:
+ print('ZeroDivisionError')