Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
Pyston
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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
Pyston
Commits
2630ac9b
Commit
2630ac9b
authored
Jan 28, 2015
by
Kevin Modzelewski
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Try again to fix #272
parent
88cbdd00
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
9 deletions
+3
-9
test/tests/select_test.py
test/tests/select_test.py
+3
-9
No files found.
test/tests/select_test.py
View file @
2630ac9b
...
...
@@ -5,16 +5,10 @@ for k in sorted(dir(select)):
continue
if
k
==
"EPOLLET"
:
# On 32-bit versions of CPython, select.EPOLLET (==1<<31) overflows a 32-bit signed integer
# and becomes INT_MIN. But really, it's a bitmask so it's an unsigned value and imho should
# be provided as a positive number.
# Since we only build Pyston in 64-bit mode, EPOLLET is always positive in Pyston. If we
# see that it's negative, just make sure that it probably hit this behavior (wrapped around)
v
=
select
.
EPOLLET
if
v
<
0
:
import
sys
assert
(
-
v
)
>
sys
.
maxint
print
abs
(
v
)
if
v
==
(
-
1
<<
31
):
v
=
1
<<
31
print
v
else
:
print
k
,
getattr
(
select
,
k
)
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