Skip to content

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

Merged
henryiii merged 1 commit into
pybind:masterfrom
henryiii:tests/time
Aug 16, 2020
Merged

tests: loosen time test, not valid on some systems#2399
henryiii merged 1 commit into
pybind:masterfrom
henryiii:tests/time

Conversation

@henryiii

Copy link
Copy Markdown
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
Copy Markdown
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