File tree Expand file tree Collapse file tree 3 files changed +3
-5
lines changed
Expand file tree Collapse file tree 3 files changed +3
-5
lines changed Original file line number Diff line number Diff line change 11from __future__ import annotations
22
3- from math import inf
43import socket
54from abc import ABC , abstractmethod
65from typing import TYPE_CHECKING , Generic , TypeVar
Original file line number Diff line number Diff line change 11import time
22from math import inf
33
4- from .. import _core
54from .._abc import Clock
65from .._util import final
76from ._run import GLOBAL_RUN_CONTEXT
Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ def test_mock_clock() -> None:
2626 assert c .current_time () == 1.2
2727 assert c .deadline_to_sleep_time (- 0.1 ) == (0 , 0 )
2828 assert c .deadline_to_sleep_time (0.0 ) == (0 , 0 )
29- assert c .deadline_to_sleep_time (0.1 ) == (999999999 , 0.1 )
29+ assert c .deadline_to_sleep_time (0.1 ) == (999999999 , 0.1 )
3030
3131 with pytest .raises (ValueError , match = r"^rate must be >= 0$" ):
3232 c .rate = - 1
@@ -183,13 +183,13 @@ async def test_initialization_doesnt_mutate_runner() -> None:
183183 # TODO: is this test even necessary now?
184184 before = (
185185 GLOBAL_RUN_CONTEXT .runner .clock ,
186- #GLOBAL_RUN_CONTEXT.runner.clock.autojump_threshold,
186+ # GLOBAL_RUN_CONTEXT.runner.clock.autojump_threshold,
187187 )
188188
189189 MockClock (autojump_threshold = 2 , rate = 3 )
190190
191191 after = (
192192 GLOBAL_RUN_CONTEXT .runner .clock ,
193- #GLOBAL_RUN_CONTEXT.runner.clock.autojump_threshold,
193+ # GLOBAL_RUN_CONTEXT.runner.clock.autojump_threshold,
194194 )
195195 assert before == after
You can’t perform that action at this time.
0 commit comments