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
95da826d
Commit
95da826d
authored
Sep 11, 2019
by
Jakub Kulík
Committed by
Benjamin Peterson
Sep 11, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
closes bpo-37252: Fix devpoll tests. (GH-14017)
parent
4b41745b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
3 deletions
+5
-3
Lib/test/test_devpoll.py
Lib/test/test_devpoll.py
+3
-3
Misc/NEWS.d/next/Tests/2019-06-12-14-30-29.bpo-37252.4o-uLs.rst
...EWS.d/next/Tests/2019-06-12-14-30-29.bpo-37252.4o-uLs.rst
+2
-0
No files found.
Lib/test/test_devpoll.py
View file @
95da826d
...
...
@@ -109,7 +109,7 @@ class DevPollTests(unittest.TestCase):
# operations must fail with ValueError("I/O operation on closed ...")
self
.
assertRaises
(
ValueError
,
devpoll
.
modify
,
fd
,
select
.
POLLIN
)
self
.
assertRaises
(
ValueError
,
devpoll
.
poll
)
self
.
assertRaises
(
ValueError
,
devpoll
.
register
,
fd
,
fd
,
select
.
POLLIN
)
self
.
assertRaises
(
ValueError
,
devpoll
.
register
,
fd
,
select
.
POLLIN
)
self
.
assertRaises
(
ValueError
,
devpoll
.
unregister
,
fd
)
def
test_fd_non_inheritable
(
self
):
...
...
@@ -122,9 +122,9 @@ class DevPollTests(unittest.TestCase):
w
,
r
=
os
.
pipe
()
pollster
.
register
(
w
)
# Issue #17919
self
.
assertRaises
(
Overflow
Error
,
pollster
.
register
,
0
,
-
1
)
self
.
assertRaises
(
Value
Error
,
pollster
.
register
,
0
,
-
1
)
self
.
assertRaises
(
OverflowError
,
pollster
.
register
,
0
,
1
<<
64
)
self
.
assertRaises
(
Overflow
Error
,
pollster
.
modify
,
1
,
-
1
)
self
.
assertRaises
(
Value
Error
,
pollster
.
modify
,
1
,
-
1
)
self
.
assertRaises
(
OverflowError
,
pollster
.
modify
,
1
,
1
<<
64
)
@
cpython_only
...
...
Misc/NEWS.d/next/Tests/2019-06-12-14-30-29.bpo-37252.4o-uLs.rst
0 → 100644
View file @
95da826d
Fix assertions in ``test_close`` and ``test_events_mask_overflow`` devpoll
tests.
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