An efficient and elegant inotify (Linux filesystem activity monitor) library for Python. Python 2 and 3 compatible.
GNU General Public License v2.0
245
stars
73
forks
source link
event_names should be a SET. Cleaner and testsuite more robust #41
Open
jcea opened 6 years ago
Currently many tests are failing because event_names like "['IN_CREATE', 'IN_ISDIR']" do not garantee ordering, so the "assertEqual()" fails.
This could be solved using a SET, and the result is cleaner because order names in an event is irrelevant (they are actually flags).
When running the tests now I get trivial errors like:
I could submit a patch if you want.