ruff: enable UP ruleset for detecting python deprecations
This commit is contained in:
parent
d244c7cc4e
commit
118c2d4484
9 changed files with 27 additions and 22 deletions
|
@ -526,9 +526,8 @@ def test_parse_timedelta_string() -> None:
|
|||
|
||||
|
||||
def test_parse_datetime_float() -> None:
|
||||
|
||||
pnow = parse_datetime_float("now")
|
||||
sec_diff = abs((pnow - datetime.now().timestamp()))
|
||||
sec_diff = abs(pnow - datetime.now().timestamp())
|
||||
# should probably never fail? could mock time.time
|
||||
# but there seems to be issues with doing that use C-libraries (as time.time) does
|
||||
# https://docs.python.org/3/library/unittest.mock-examples.html#partial-mocking
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue