diff options
| author | Damien George <damien.p.george@gmail.com> | 2015-10-01 17:57:36 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2015-10-01 17:57:36 +0100 |
| commit | 4c02e54298b0f955c5d60023310b724baa890d67 (patch) | |
| tree | 0b78cc275adf00b35d794e1247a2bd5a3b472fd3 /tests/misc/non_compliant.py | |
| parent | 5f3c3ec5e62e64872bfd3f274473db86c2b7fd25 (diff) | |
py/mpz: Raise NotImplError instead of failing assertion.
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') |
