Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(5)

Unified Diff: third_party/boto/tests/unit/glacier/test_concurrent.py

Issue 698893003: Update checked in version of gsutil to version 4.6 (Closed) Base URL: http://dart.googlecode.com/svn/third_party/gsutil/
Patch Set: Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/boto/tests/unit/glacier/test_concurrent.py
===================================================================
--- third_party/boto/tests/unit/glacier/test_concurrent.py (revision 33376)
+++ third_party/boto/tests/unit/glacier/test_concurrent.py (working copy)
@@ -58,14 +58,12 @@
def setUp(self):
super(TestConcurrentUploader, self).setUp()
self.stat_patch = mock.patch('os.stat')
+ self.addCleanup(self.stat_patch.stop)
self.stat_mock = self.stat_patch.start()
# Give a default value for tests that don't care
# what the file size is.
self.stat_mock.return_value.st_size = 1024 * 1024 * 8
- def tearDown(self):
- self.stat_mock = self.stat_patch.start()
-
def test_calculate_required_part_size(self):
self.stat_mock.return_value.st_size = 1024 * 1024 * 8
uploader = ConcurrentUploader(mock.Mock(), 'vault_name')
« no previous file with comments | « third_party/boto/tests/unit/emr/test_connection.py ('k') | third_party/boto/tests/unit/glacier/test_layer2.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698