diff options
author | Damien George <damien@micropython.org> | 2020-08-29 14:04:59 +1000 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2020-08-29 14:12:20 +1000 |
commit | 0c7354afaf91da3dac2c5ec471603c9e7acc8eac (patch) | |
tree | 99bd5aa3c2d9160a257db591b96dd29717c61110 /tests/float/complex_special_methods.py | |
parent | 40d174ac7d1cc5c548756bb75b4f36b9b450b8bf (diff) | |
download | micropython-0c7354afaf91da3dac2c5ec471603c9e7acc8eac.tar.gz micropython-0c7354afaf91da3dac2c5ec471603c9e7acc8eac.zip |
tests: Split out complex reverse-op tests to separate test file.
So they can be skipped if __rOP__'s are not supported on the target. Also
fix the typo in the complex_special_methods.py filename.
Signed-off-by: Damien George <damien@micropython.org>
Diffstat (limited to 'tests/float/complex_special_methods.py')
-rw-r--r-- | tests/float/complex_special_methods.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/float/complex_special_methods.py b/tests/float/complex_special_methods.py new file mode 100644 index 0000000000..7e54905e49 --- /dev/null +++ b/tests/float/complex_special_methods.py @@ -0,0 +1,10 @@ +# test complex interacting with special methods + + +class A: + def __add__(self, x): + print("__add__") + return 1 + + +print(A() + 1j) |