diff options
Diffstat (limited to 'tests/misc/non_compliant.py')
| -rw-r--r-- | tests/misc/non_compliant.py | 18 |
1 files changed, 18 insertions, 0 deletions
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') |
