explain why we need to touch() twice

This commit is contained in:
Jean-Paul Calderone 2019-03-14 10:27:48 -04:00
parent 5141105441
commit 365ff1a02c

View File

@ -90,6 +90,9 @@ class INotifyTests(AsyncTestCase):
sends an C{inotify.IN_ATTRIB} event to the callback.
"""
def operation(path):
# Create the file.
path.touch()
# Modify the file's attributes.
path.touch()
return self._notificationTest(inotify.IN_ATTRIB, operation)