Revert "Add assert to RandomContentFile, ensure size >= digest_size"

This reverts commit fb8f110e69.

realistic.files was meant to work just fine with short files. Commit
91c4f88860 has a fix for the verifying
side, to support short files.

Conflicts:

	s3tests/realistic.py
This commit is contained in:
Tommi Virtanen 2011-07-19 08:56:17 -07:00
parent 0297d61e40
commit 56ff0f6374

View file

@ -18,12 +18,6 @@ class RandomContentFile(object):
# Let seek initialize the rest of it, rather than dup code
self.seek(0)
assert self.size >= self.digest_size, \
"Can not create RandomContentFile: size ({size}) must be >= digest_size ({digest_size})".format(
size=self.size,
digest_size=self.digest_size
)
def _mark_chunk(self):
self.chunks.append([self.offset, (time.time() - self.last_seek) * 1000000000])