-
-
Notifications
You must be signed in to change notification settings - Fork 704
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 inotify behavior when presented with non-ASCII path events #519
Fix inotify behavior when presented with non-ASCII path events #519
Conversation
Thanks for the changes, and I am sorry to ask you one last thing :) Could you apply those changes (I should have done it way sooner): diff --git a/tests/conftest.py b/tests/conftest.py
index ed58af3..418a58d 100644
--- a/tests/conftest.py
+++ b/tests/conftest.py
@@ -20,3 +20,22 @@ def p(tmpdir, *args):
with the provided arguments.
"""
return partial(os.path.join, tmpdir)
+
+
+
+@pytest.fixture(autouse=True)
+def no_warnings(recwarn):
+ """Fail on warning."""
+
+ yield
+
+ warnings = []
+ for warning in recwarn: # pragma: no cover
+ message = str(warning.message)
+ if (
+ "Not importing directory" in message
+ or "Using or importing the ABCs" in message
+ ):
+ continue
+ warnings.append("{w.filename}:{w.lineno} {w.message}".format(w=warning))
+ assert not warnings With this fixture, you will see several failures related to your changes and this is what we tried to fix in the older commit. Many many thanks for your patience, time and work 💪 |
It is decoded more correctly at the observer layer.
8da3a5f
to
8c72be4
Compare
@BoboTiG The no-warnings fixture is now in place and I've fixed the test failures where such warnings were being triggered (probably; macOS travis jobs still running, the rest are green). |
Thanks @exarkun :) |
Fixes #516