Merge "Make test_close_error run much faster"

This commit is contained in:
Jenkins 2014-01-21 22:00:54 +00:00 committed by Gerrit Code Review
commit 7fead4161e

View File

@ -1485,7 +1485,7 @@ class TestDiskFile(unittest.TestCase):
def mock_handle_close_quarantine():
raise Exception("Bad")
df = self._get_open_disk_file(fsize=1024 * 1024 * 2)
df = self._get_open_disk_file(fsize=1024 * 1024 * 2, csize=1024)
reader = df.reader()
reader._handle_close_quarantine = mock_handle_close_quarantine
for chunk in reader: