Skip to content

Conversation

mykola-mokhnach
Copy link
Contributor

It turns out timedelta class normalises its seconds, microseconds and days properties as mentioned in https://docs.python.org/3/library/datetime.html#datetime.timedelta

Thus we need to use the total_seconds() property in order to avoid unexpected normalization side effects in case longer deltas are provided

@mykola-mokhnach mykola-mokhnach merged commit b31b5eb into appium:master Sep 16, 2022
@mykola-mokhnach mykola-mokhnach deleted the timedelta branch September 16, 2022 07:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants