mirror of
https://github.com/python/cpython.git
synced 2025-09-30 20:31:52 +00:00
Issue #20505: Fix TestLoop, set the clock resolution
This commit is contained in:
parent
ed1654fa3e
commit
7b467db4d3
1 changed files with 1 additions and 0 deletions
|
@ -191,6 +191,7 @@ class TestLoop(base_events.BaseEventLoop):
|
||||||
self._gen = gen()
|
self._gen = gen()
|
||||||
next(self._gen)
|
next(self._gen)
|
||||||
self._time = 0
|
self._time = 0
|
||||||
|
self._clock_resolution = 1e-9
|
||||||
self._timers = []
|
self._timers = []
|
||||||
self._selector = TestSelector()
|
self._selector = TestSelector()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue