Commit fc0729b3 authored by Michael Howitz's avatar Michael Howitz

Fix lint tests.

parent a0c82e9c
......@@ -1005,7 +1005,9 @@ class ClientThread(ClientRunner):
class Fut(object):
"""Lightweight future that calls it's callbacks immediately rather than soon
"""Lightweight future that calls it's callbacks immediately ...
rather than soon.
"""
def __init__(self):
......
......@@ -286,7 +286,7 @@ class SizedMessageAsyncConnection(asyncore.dispatcher):
except StopIteration:
messages.pop(0)
else:
assert(isinstance(message, six.binary_type))
assert isinstance(message, six.binary_type)
size += self.__message_output(message, output)
v = b"".join(output)
......
......@@ -730,8 +730,8 @@ class CommonBlobTests(object):
filename = self._storage.loadBlob(oid, serial)
with open(filename, 'rb') as f:
self.assertEqual(somedata, f.read())
self.assertTrue(not(os.stat(filename).st_mode & stat.S_IWRITE))
self.assertTrue((os.stat(filename).st_mode & stat.S_IREAD))
self.assertTrue(not (os.stat(filename).st_mode & stat.S_IWRITE))
self.assertTrue(os.stat(filename).st_mode & stat.S_IREAD)
def checkTemporaryDirectory(self):
self.assertEqual(os.path.join(self.blob_cache_dir, 'tmp'),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment