From 11f397b15999c696edade1c59d7cc30d3b55cd99 Mon Sep 17 00:00:00 2001 From: Daira Hopwood Date: Tue, 21 Apr 2015 23:54:51 +0100 Subject: [PATCH] Cosmetics. Signed-off-by: Daira Hopwood --- src/allmydata/frontends/drop_upload.py | 3 ++- src/allmydata/test/test_drop_upload.py | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) 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. -- 2.45.2