From 0c7354afaf91da3dac2c5ec471603c9e7acc8eac Mon Sep 17 00:00:00 2001 From: Damien George Date: Sat, 29 Aug 2020 14:04:59 +1000 Subject: 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 --- tests/float/complex_reverse_op.py | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 tests/float/complex_reverse_op.py (limited to 'tests/float/complex_reverse_op.py') diff --git a/tests/float/complex_reverse_op.py b/tests/float/complex_reverse_op.py new file mode 100644 index 000000000..a7351949d --- /dev/null +++ b/tests/float/complex_reverse_op.py @@ -0,0 +1,10 @@ +# test complex interacting with special reverse methods + + +class A: + def __radd__(self, x): + print("__radd__") + return 2 + + +print(1j + A()) -- cgit v1.2.3