Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
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
Kirill Smelkov
cpython
Commits
d7f44e23
Commit
d7f44e23
authored
Oct 12, 2014
by
R David Murray
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
#11973: add test for previously fixed kevent signed/unsigned bug.
Patch by David Naylor.
parent
fb29e352
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
0 deletions
+25
-0
Lib/test/test_kqueue.py
Lib/test/test_kqueue.py
+25
-0
No files found.
Lib/test/test_kqueue.py
View file @
d7f44e23
...
...
@@ -81,6 +81,31 @@ class TestKQueue(unittest.TestCase):
self
.
assertEqual
(
ev
,
ev
)
self
.
assertNotEqual
(
ev
,
other
)
# Issue 11973
bignum
=
0xffff
ev
=
select
.
kevent
(
0
,
1
,
bignum
)
self
.
assertEqual
(
ev
.
ident
,
0
)
self
.
assertEqual
(
ev
.
filter
,
1
)
self
.
assertEqual
(
ev
.
flags
,
bignum
)
self
.
assertEqual
(
ev
.
fflags
,
0
)
self
.
assertEqual
(
ev
.
data
,
0
)
self
.
assertEqual
(
ev
.
udata
,
0
)
self
.
assertEqual
(
ev
,
ev
)
self
.
assertNotEqual
(
ev
,
other
)
# Issue 11973
bignum
=
0xffffffff
ev
=
select
.
kevent
(
0
,
1
,
2
,
bignum
)
self
.
assertEqual
(
ev
.
ident
,
0
)
self
.
assertEqual
(
ev
.
filter
,
1
)
self
.
assertEqual
(
ev
.
flags
,
2
)
self
.
assertEqual
(
ev
.
fflags
,
bignum
)
self
.
assertEqual
(
ev
.
data
,
0
)
self
.
assertEqual
(
ev
.
udata
,
0
)
self
.
assertEqual
(
ev
,
ev
)
self
.
assertNotEqual
(
ev
,
other
)
def
test_queue_event
(
self
):
serverSocket
=
socket
.
socket
()
serverSocket
.
bind
((
'127.0.0.1'
,
0
))
...
...
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