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
da94b9eb
Commit
da94b9eb
authored
Jan 23, 2014
by
Victor Stinner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Issue #20311: add debug help in test_selectors
parent
c520edc0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
Lib/test/test_selectors.py
Lib/test/test_selectors.py
+5
-2
No files found.
Lib/test/test_selectors.py
View file @
da94b9eb
...
...
@@ -5,7 +5,7 @@ import selectors
import
signal
import
socket
from
test
import
support
from
time
import
sleep
,
perf_counter
from
time
import
sleep
,
perf_counter
,
get_clock_info
import
unittest
import
unittest.mock
try
:
...
...
@@ -377,7 +377,10 @@ class BaseSelectorTestCase(unittest.TestCase):
t0
=
perf_counter
()
s
.
select
(
timeout
)
dt
=
perf_counter
()
-
t0
self
.
assertGreaterEqual
(
dt
,
timeout
)
clock
=
get_clock_info
(
'perf_counter'
)
self
.
assertGreaterEqual
(
dt
,
timeout
,
"%.30f < %.30f ; clock=%s"
%
(
dt
,
timeout
,
clock
))
class
ScalableSelectorMixIn
:
...
...
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