Skip to content

Commit 9cad2d7

Browse files
post rebase ruff fixes
1 parent 16ec43a commit 9cad2d7

File tree

3 files changed

+5
-6
lines changed

3 files changed

+5
-6
lines changed

src/_pytest/timing.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ class MockTiming:
3333
Time is static, and only advances through `sleep` calls, thus tests might sleep over large
3434
numbers and obtain accurate time() calls at the end, making tests reliable and instant."""
3535

36-
_current_time: float = datetime(2020, 5, 22, 14, 20, 50).timestamp() # noqa: RUF009
36+
_current_time: float = datetime(2020, 5, 22, 14, 20, 50).timestamp()
3737

3838
def sleep(self, seconds: float) -> None:
3939
self._current_time += seconds

testing/conftest.py

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

44
from collections.abc import Generator
5-
import dataclasses
65
import importlib.metadata
76
import re
87
import sys

testing/test_junitxml.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ def test_pass():
829829
"system-out should not be generated"
830830
)
831831
if junit_logging == "system-out":
832-
systemout = pnode.find_first_by_tag("system-out")
832+
systemout = pnode.get_first_by_tag("system-out")
833833
assert "hello-stdout" in systemout.toxml(), (
834834
"'hello-stdout' should be in system-out"
835835
)
@@ -853,7 +853,7 @@ def test_pass():
853853
"system-err should not be generated"
854854
)
855855
if junit_logging == "system-err":
856-
systemerr = pnode.find_first_by_tag("system-err")
856+
systemerr = pnode.get_first_by_tag("system-err")
857857
assert "hello-stderr" in systemerr.toxml(), (
858858
"'hello-stderr' should be in system-err"
859859
)
@@ -882,7 +882,7 @@ def test_function(arg):
882882
"system-out should not be generated"
883883
)
884884
if junit_logging == "system-out":
885-
systemout = pnode.find_first_by_tag("system-out")
885+
systemout = pnode.get_first_by_tag("system-out")
886886
assert "hello-stdout" in systemout.toxml(), (
887887
"'hello-stdout' should be in system-out"
888888
)
@@ -912,7 +912,7 @@ def test_function(arg):
912912
"system-err should not be generated"
913913
)
914914
if junit_logging == "system-err":
915-
systemerr = pnode.find_first_by_tag("system-err")
915+
systemerr = pnode.get_first_by_tag("system-err")
916916
assert "hello-stderr" in systemerr.toxml(), (
917917
"'hello-stderr' should be in system-err"
918918
)

0 commit comments

Comments
 (0)