From: david-sarah Date: Wed, 10 Aug 2011 03:45:05 +0000 (-0700) Subject: test_client.py, test_drop_upload.py: fix pyflakes warnings. X-Git-Url: https://git.rkrishnan.org/%3C?a=commitdiff_plain;h=0104dbab92a7e85e8568c862c15c4b492496e0d6;p=tahoe-lafs%2Ftahoe-lafs.git test_client.py, test_drop_upload.py: fix pyflakes warnings. --- diff --git a/src/allmydata/test/test_client.py b/src/allmydata/test/test_client.py index 3e5fdd95..59618fd5 100644 --- a/src/allmydata/test/test_client.py +++ b/src/allmydata/test/test_client.py @@ -227,7 +227,7 @@ class Basic(testutil.ReallyEqualMixin, unittest.TestCase): basedir3 = "test_client.Basic.test_create_drop_uploader3" os.mkdir(basedir3) fileutil.write(os.path.join(basedir3, "tahoe.cfg"), config) - c3 = client.Client(basedir3) + client.Client(basedir3) self.failUnless([True for arg in mock_log_msg.call_args_list if "Boom" in repr(arg) and "something wrong" in repr(arg)], mock_log_msg.call_args_list) diff --git a/src/allmydata/test/test_drop_upload.py b/src/allmydata/test/test_drop_upload.py index 4f3007d8..30ff8811 100644 --- a/src/allmydata/test/test_drop_upload.py +++ b/src/allmydata/test/test_drop_upload.py @@ -2,12 +2,12 @@ import os, sys from twisted.trial import unittest -from twisted.python import filepath, runtime, log +from twisted.python import filepath, runtime from twisted.internet import defer from allmydata.interfaces import IDirectoryNode, NoSuchChildError -from allmydata.util import fileutil, fake_inotify +from allmydata.util import fake_inotify from allmydata.util.encodingutil import get_filesystem_encoding from allmydata.util.consumer import download_to_data from allmydata.test.no_network import GridTestMixin