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

Side by Side Diff: tests/s3/cb_test_harnass.py

Issue 8386013: Merging in latest boto. (Closed) Base URL: svn://svn.chromium.org/boto
Patch Set: Redoing vendor drop by deleting and then merging. Created 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « tests/s3/__init__.py ('k') | tests/s3/mock_storage_service.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2010 Google Inc. 1 # Copyright 2010 Google Inc.
2 # 2 #
3 # Permission is hereby granted, free of charge, to any person obtaining a 3 # Permission is hereby granted, free of charge, to any person obtaining a
4 # copy of this software and associated documentation files (the 4 # copy of this software and associated documentation files (the
5 # "Software"), to deal in the Software without restriction, including 5 # "Software"), to deal in the Software without restriction, including
6 # without limitation the rights to use, copy, modify, merge, publish, dis- 6 # without limitation the rights to use, copy, modify, merge, publish, dis-
7 # tribute, sublicense, and/or sell copies of the Software, and to permit 7 # tribute, sublicense, and/or sell copies of the Software, and to permit
8 # persons to whom the Software is furnished to do so, subject to the fol- 8 # persons to whom the Software is furnished to do so, subject to the fol-
9 # lowing conditions: 9 # lowing conditions:
10 # 10 #
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 if (total_bytes_transferred >= self.fail_after_n_bytes and 62 if (total_bytes_transferred >= self.fail_after_n_bytes and
63 self.num_failures < self.num_times_to_fail): 63 self.num_failures < self.num_times_to_fail):
64 self.num_failures += 1 64 self.num_failures += 1
65 if self.fp_to_change and self.fp_change_pos is not None: 65 if self.fp_to_change and self.fp_change_pos is not None:
66 cur_pos = self.fp_to_change.tell() 66 cur_pos = self.fp_to_change.tell()
67 self.fp_to_change.seek(self.fp_change_pos) 67 self.fp_to_change.seek(self.fp_change_pos)
68 self.fp_to_change.write('abc') 68 self.fp_to_change.write('abc')
69 self.fp_to_change.seek(cur_pos) 69 self.fp_to_change.seek(cur_pos)
70 self.called = True 70 self.called = True
71 raise self.exception 71 raise self.exception
OLDNEW
« no previous file with comments | « tests/s3/__init__.py ('k') | tests/s3/mock_storage_service.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698