remove special-case win32

This commit is contained in:
meejah 2016-06-15 08:54:54 -06:00 committed by Brian Warner
parent 161c876f2f
commit 1ac6c9bdf6

View File

@ -163,12 +163,10 @@ class CheckerMixin(object):
# is renamed into place, which causes events that the test is not expecting.
f = open(path_u, "wb")
try:
if temporary and sys.platform != "win32":
os.unlink(path_u)
f.write(data)
finally:
f.close()
if temporary and sys.platform == "win32":
if temporary:
os.unlink(path_u)
yield self.notify(path, self.inotify.IN_DELETE, flush=False)
event_mask = self.inotify.IN_CLOSE_WRITE
@ -1450,6 +1448,7 @@ class RealTestAliceBob(MagicFolderAliceBobTestMixin, unittest.TestCase):
self.inotify = magic_folder.get_inotify_module()
return d
# XXX flush doesn't do anything (anymore?)
def notify(self, path, mask, magic=None, flush=True):
# Writing to the filesystem causes the notification.
# Actually, there's no way to know when the actual