diff options
author | Damien George <damien.p.george@gmail.com> | 2015-08-25 18:18:57 +0100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2015-08-29 23:13:28 +0100 |
commit | 1d350b8ac6c65bd53115bfdc7511e4028f3c69ac (patch) | |
tree | b4f06dceff7101c8cacdb9e81b0fa30eca4f1735 /tests/float/float_divmod_relaxed.py | |
parent | a488c266c34f70ab6bff86b1f31f1d1a343ab1b8 (diff) | |
download | micropython-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.py | 6 |
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') |