Skip to content
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

Fix test_emitter.py on macOS #546

Closed
BoboTiG opened this issue Mar 20, 2019 · 8 comments
Closed

Fix test_emitter.py on macOS #546

BoboTiG opened this issue Mar 20, 2019 · 8 comments

Comments

@BoboTiG
Copy link
Collaborator

BoboTiG commented Mar 20, 2019

test_emitter.py is broken on macOS, we need to fix that.

@Ajordat
Copy link
Contributor

Ajordat commented Dec 2, 2019

The test test_delete also fails on Windows systems.

@evilham
Copy link
Contributor

evilham commented Feb 7, 2020

@BoboTiG could this have been accidentally fixed by #633?

@BoboTiG
Copy link
Collaborator Author

BoboTiG commented Feb 7, 2020

Nope, tests are simply skipped for now:

elif platform.is_darwin():
pytestmark = pytest.mark.skip("FIXME: issue #546.")

@samschott
Copy link
Contributor

samschott commented Nov 22, 2020

The test failures don't look too bad with 0.10.3:

tests/test_emitter.py::test_create PASSED                                                                                                                                                                  [  3%]
tests/test_emitter.py::test_delete PASSED                                                                                                                                                                  [  4%]
tests/test_emitter.py::test_modify PASSED                                                                                                                                                                  [  6%]
tests/test_emitter.py::test_move PASSED                                                                                                                                                                    [  7%]
tests/test_emitter.py::test_move_to PASSED                                                                                                                                                                 [  8%]
tests/test_emitter.py::test_move_to_full SKIPPED                                                                                                                                                           [  9%]
tests/test_emitter.py::test_move_from PASSED                                                                                                                                                               [ 11%]
tests/test_emitter.py::test_move_from_full SKIPPED                                                                                                                                                         [ 12%]
tests/test_emitter.py::test_separate_consecutive_moves FAILED                                                                                                                                              [ 13%]
tests/test_emitter.py::test_delete_self FAILED                                                                                                                                                             [ 14%]
tests/test_emitter.py::test_fast_subdirectory_creation_deletion FAILED                                                                                                                                     [ 16%]
tests/test_emitter.py::test_passing_unicode_should_give_unicode PASSED                                                                                                                                     [ 17%]
tests/test_emitter.py::test_passing_bytes_should_give_bytes PASSED                                                                                                                                         [ 18%]
tests/test_emitter.py::test_recursive_on FAILED                                                                                                                                                            [ 19%]
tests/test_emitter.py::test_recursive_off FAILED                                                                                                                                                           [ 20%]
tests/test_emitter.py::test_renaming_top_level_directory FAILED                                                                                                                                            [ 22%]
tests/test_emitter.py::test_renaming_top_level_directory_on_windows SKIPPED                                                                                                                                [ 23%]
tests/test_emitter.py::test_move_nested_subdirectories FAILED                                                                                                                                              [ 24%]
tests/test_emitter.py::test_move_nested_subdirectories_on_windows SKIPPED

The failures mostly appear to come from the events being emitted in the wrong order. But this is not surprising when using an emitter that takes the difference of directory snapshots to generate events.

@BoboTiG
Copy link
Collaborator Author

BoboTiG commented Nov 22, 2020

@samschott I would love to merge a PR fixing those tests :)

@samschott
Copy link
Contributor

samschott commented Nov 22, 2020

Well, I suspect that many of them will be fixed automatically with the switch to FSEvents (if the emitter no longer crashes). So the first step will be to fix #702.

I'm happy to try and clean up any remaining test failures.

@BoboTiG
Copy link
Collaborator Author

BoboTiG commented Nov 22, 2020

We are lacking of time here, so if you can give a shot, I would be happy 👍

Given the regression you are encountering, I will be able to do a new release ASAP when it will be fixed.

@BoboTiG
Copy link
Collaborator Author

BoboTiG commented Jan 19, 2021

Closed by #734.

@BoboTiG BoboTiG closed this as completed Jan 19, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants