From dc5668fb366d06adbde05442f1173d26cb63becc Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Mon, 14 Sep 2015 20:16:24 +0100 Subject: [PATCH] Minor cleanup. Signed-off-by: Daira Hopwood --- src/allmydata/test/test_magic_folder.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/allmydata/test/test_magic_folder.py b/src/allmydata/test/test_magic_folder.py index c46c959b..2df00091 100644 --- a/src/allmydata/test/test_magic_folder.py +++ b/src/allmydata/test/test_magic_folder.py @@ -204,13 +204,13 @@ class MagicFolderTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, ReallyEqual d.addCallback(lambda ign: self.create_invite_join_magic_folder(u"Alice", self.local_dir)) d.addCallback(lambda ign: self.create_magicfolder()) - def create_test_file(result, filename): + def create_test_file(filename): d2 = self.magicfolder.uploader.set_hook('processed') test_file = abspath_expanduser_unicode(filename, base=self.local_dir) fileutil.write(test_file, "meow %s" % filename) self.notify(to_filepath(test_file), self.inotify.IN_CLOSE_WRITE) return d2 - d.addCallback(lambda ign: create_test_file(ign, u"what1")) + d.addCallback(lambda ign: create_test_file(u"what1")) def fu(res): print "upload complete" return res @@ -221,7 +221,7 @@ class MagicFolderTestMixin(MagicFolderCLITestMixin, ShouldFailMixin, ReallyEqual d.addCallback(self._restart_client) d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.objects_succeeded'), 1)) d.addCallback(lambda ign: self.failUnlessReallyEqual(self._get_count('uploader.objects_queued'), 0)) - d.addCallback(lambda ign: create_test_file(ign, u"what2")) + d.addCallback(lambda ign: create_test_file(u"what2")) def fu2(res): print "2nd upload complete" -- 2.45.2