diff options
author | Stefan Behnel <stefan_ml@behnel.de> | 2021-12-18 20:58:03 +0100 |
---|---|---|
committer | Stefan Behnel <stefan_ml@behnel.de> | 2022-01-28 12:59:55 +0100 |
commit | addf39660d618590005c784da6bd9f1f757606d0 (patch) | |
tree | c792ce4e79dbd998a932c59968b4cdf6aac97345 | |
parent | 546765d8d070e824fe61e6137b01e0693952885d (diff) | |
download | cython-addf39660d618590005c784da6bd9f1f757606d0.tar.gz |
Remove test code that fails to compile in Py3.11 (and that isn't really worth testing).
-rw-r--r-- | tests/run/longintrepr.pyx | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/tests/run/longintrepr.pyx b/tests/run/longintrepr.pyx index 105a67c2e..47a718aa9 100644 --- a/tests/run/longintrepr.pyx +++ b/tests/run/longintrepr.pyx @@ -5,10 +5,6 @@ from cpython.longintrepr cimport * cimport cython -cdef extern from *: - Py_ssize_t* Py_SIZE_PTR "&Py_SIZE"(object) - - @cython.cdivision(True) def lshift(long a, unsigned long n): """ @@ -16,12 +12,10 @@ def lshift(long a, unsigned long n): >>> print(lshift(3, 1)) 6 - >>> print(lshift(-3, 1)) - -6 >>> print(lshift(1, 30)) 1073741824 >>> print(lshift(-12345, 115)) - -512791237748899576593671817473776680960 + 512791237748899576593671817473776680960 >>> print(-12345 << 115) -512791237748899576593671817473776680960 >>> [i for i in range(100) if (65535 << i) != lshift(65535, i)] @@ -58,7 +52,4 @@ def lshift(long a, unsigned long n): index -= 1 ret.ob_digit[index] = 0 - if a < 0: - Py_SIZE_PTR(ret)[0] *= -1 - return ret |