mirror of
https://github.com/python/cpython.git
synced 2025-07-24 11:44:31 +00:00
Oops, undo unwanted changes in test_asyncio: mistakes of my the last sync with
Tulip (changeset d7ac90c0463a)
This commit is contained in:
parent
e48d4db000
commit
1703bbbf89
3 changed files with 17 additions and 8 deletions
|
@ -1185,6 +1185,14 @@ class EventLoopTestsMixin:
|
|||
calls.append(self.loop._run_once_counter)
|
||||
self.assertEqual(calls, [1, 3, 5, 6])
|
||||
|
||||
def test_granularity(self):
|
||||
granularity = self.loop._granularity
|
||||
self.assertGreater(granularity, 0.0)
|
||||
# Worst expected granularity: 1 ms on Linux (limited by poll/epoll
|
||||
# resolution), 15.6 ms on Windows (limited by time.monotonic
|
||||
# resolution)
|
||||
self.assertLess(granularity, 0.050)
|
||||
|
||||
|
||||
class SubprocessTestsMixin:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue