Skip to content

tests: loosen time test, not valid on some systems #2399

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Aug 16, 2020

Conversation

henryiii
Copy link
Collaborator

Fix #2398

Test time diff < 2 seconds instead of < 0.5 seconds since time.time() only has 1s accuracy on some systems.

@henryiii henryiii changed the title tests: loosen test, not valid on some systems tests: loosen time test, not valid on some systems Aug 16, 2020
@YannickJadoul
Copy link
Collaborator

Sounds good to me! The actual goal of this test is to make sure it doesn't just produce random data and that the C++ and Python implementation match each other, I suppose?

(Alternatively, you could try <= 1, but I guess it's fine either way.)

@henryiii henryiii merged commit a876aac into pybind:master Aug 16, 2020
@henryiii henryiii deleted the tests/time branch August 16, 2020 15:18
@henryiii henryiii added the ci related to the CI system label Aug 18, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ci related to the CI system
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flaky timing Windows test in CI
3 participants