Skip to content

Commit a666494

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent dc01214 commit a666494

File tree

3 files changed

+3
-5
lines changed

3 files changed

+3
-5
lines changed

src/trio/_abc.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
from __future__ import annotations
22

3-
from math import inf
43
import socket
54
from abc import ABC, abstractmethod
65
from typing import TYPE_CHECKING, Generic, TypeVar

src/trio/_core/_mock_clock.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import time
22
from math import inf
33

4-
from .. import _core
54
from .._abc import Clock
65
from .._util import final
76
from ._run import GLOBAL_RUN_CONTEXT

src/trio/_core/_tests/test_mock_clock.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)