Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

fix: Use total_seconds property of timedelta#767

Merged
mykola-mokhnach merged 1 commit intoappium:masterappium/python-client:masterfrom
mykola-mokhnach:timedeltamykola-mokhnach/python-client:timedeltaCopy head branch name to clipboard
Sep 16, 2022
Merged

fix: Use total_seconds property of timedelta#767
mykola-mokhnach merged 1 commit intoappium:masterappium/python-client:masterfrom
mykola-mokhnach:timedeltamykola-mokhnach/python-client:timedeltaCopy head branch name to clipboard

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.