Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cython
Commits
addf3966
Commit
addf3966
authored
Dec 18, 2021
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Remove test code that fails to compile in Py3.11 (and that isn't really worth testing).
parent
546765d8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
10 deletions
+1
-10
tests/run/longintrepr.pyx
tests/run/longintrepr.pyx
+1
-10
No files found.
tests/run/longintrepr.pyx
View file @
addf3966
...
@@ -5,10 +5,6 @@
...
@@ -5,10 +5,6 @@
from
cpython.longintrepr
cimport
*
from
cpython.longintrepr
cimport
*
cimport
cython
cimport
cython
cdef
extern
from
*
:
Py_ssize_t
*
Py_SIZE_PTR
"&Py_SIZE"
(
object
)
@
cython
.
cdivision
(
True
)
@
cython
.
cdivision
(
True
)
def
lshift
(
long
a
,
unsigned
long
n
):
def
lshift
(
long
a
,
unsigned
long
n
):
"""
"""
...
@@ -16,12 +12,10 @@ def lshift(long a, unsigned long n):
...
@@ -16,12 +12,10 @@ def lshift(long a, unsigned long n):
>>> print(lshift(3, 1))
>>> print(lshift(3, 1))
6
6
>>> print(lshift(-3, 1))
-6
>>> print(lshift(1, 30))
>>> print(lshift(1, 30))
1073741824
1073741824
>>> print(lshift(-12345, 115))
>>> print(lshift(-12345, 115))
-
512791237748899576593671817473776680960
512791237748899576593671817473776680960
>>> print(-12345 << 115)
>>> print(-12345 << 115)
-512791237748899576593671817473776680960
-512791237748899576593671817473776680960
>>> [i for i in range(100) if (65535 << i) != lshift(65535, i)]
>>> [i for i in range(100) if (65535 << i) != lshift(65535, i)]
...
@@ -58,7 +52,4 @@ def lshift(long a, unsigned long n):
...
@@ -58,7 +52,4 @@ def lshift(long a, unsigned long n):
index
-=
1
index
-=
1
ret
.
ob_digit
[
index
]
=
0
ret
.
ob_digit
[
index
]
=
0
if
a
<
0
:
Py_SIZE_PTR
(
ret
)[
0
]
*=
-
1
return
ret
return
ret
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment