From: Daira Hopwood Date: Tue, 21 Apr 2015 22:54:51 +0000 (+0100) Subject: Cosmetics. X-Git-Url: https://git.rkrishnan.org/pf?a=commitdiff_plain;h=11f397b15999c696edade1c59d7cc30d3b55cd99;p=tahoe-lafs%2Ftahoe-lafs.git Cosmetics. Signed-off-by: Daira Hopwood --- diff --git a/src/allmydata/frontends/drop_upload.py b/src/allmydata/frontends/drop_upload.py index f816e9e4..48ed2cd3 100644 --- a/src/allmydata/frontends/drop_upload.py +++ b/src/allmydata/frontends/drop_upload.py @@ -230,7 +230,8 @@ class DropUploader(service.MultiService): filecap = filenode.get_uri() print "filename %s filecap %s" % (path, filecap) s = os.stat(path) - self._db.did_upload_file(filecap, path.decode('UTF-8'), s.st_mtime, s.st_ctime, s.st_size) + self._db.did_upload_file(filecap, path.decode('UTF-8'), + s.st_mtime, s.st_ctime, s.st_size) #r = self._db.check_file(path.decode('UTF-8')) #was_uploaded = r.was_uploaded() diff --git a/src/allmydata/test/test_drop_upload.py b/src/allmydata/test/test_drop_upload.py index 60287194..ec534dbc 100644 --- a/src/allmydata/test/test_drop_upload.py +++ b/src/allmydata/test/test_drop_upload.py @@ -319,11 +319,11 @@ class MockTest(DropUploadTestMixin, unittest.TestCase): self.inotify = fake_inotify self.basedir = "drop_upload.MockTest.test_persistence" return self._test_persistence() - + + class RealTest(DropUploadTestMixin, unittest.TestCase): """This is skipped unless both Twisted and the platform support inotify.""" - def test_drop_upload(self): # We should always have runtime.platform.supportsINotify, because we're using # Twisted >= 10.1.