From 4c02e54298b0f955c5d60023310b724baa890d67 Mon Sep 17 00:00:00 2001 From: Damien George Date: Thu, 1 Oct 2015 17:57:36 +0100 Subject: py/mpz: Raise NotImplError instead of failing assertion. --- tests/misc/non_compliant.py | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'tests/misc/non_compliant.py') diff --git a/tests/misc/non_compliant.py b/tests/misc/non_compliant.py index de8457906..0cf462abb 100644 --- a/tests/misc/non_compliant.py +++ b/tests/misc/non_compliant.py @@ -69,3 +69,21 @@ try: b'123'[0:3:2] except NotImplementedError: print('NotImplementedError') + +# mpz and with both args negative +try: + -(1<<70) & -2 +except NotImplementedError: + print('NotImplementedError') + +# mpz or with args opposite sign +try: + -(1<<70) | 2 +except NotImplementedError: + print('NotImplementedError') + +# mpz xor with args opposite sign +try: + -(1<<70) ^ 2 +except NotImplementedError: + print('NotImplementedError') -- cgit v1.2.3