[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Rdiff-backup-commits] Changes to rdiff-backup/testing/iterfiletest.py
From: |
Ben Escoto |
Subject: |
[Rdiff-backup-commits] Changes to rdiff-backup/testing/iterfiletest.py |
Date: |
Mon, 24 Oct 2005 22:38:24 -0400 |
Index: rdiff-backup/testing/iterfiletest.py
diff -u rdiff-backup/testing/iterfiletest.py:1.6
rdiff-backup/testing/iterfiletest.py:1.7
--- rdiff-backup/testing/iterfiletest.py:1.6 Tue Mar 4 21:10:38 2003
+++ rdiff-backup/testing/iterfiletest.py Tue Oct 25 02:38:17 2005
@@ -41,11 +41,11 @@
def testFileException(self):
"""Test encoding a file which raises an exception"""
- f = FileException(100*1024)
+ f = FileException(200*1024) # size depends on buffer size
new_iter = IterWrappingFile(FileWrappingIter(iter([f, "foo"])))
f_out = new_iter.next()
- assert f_out.read(10000) == "a"*10000
- try: buf = f_out.read(100*1024)
+ assert f_out.read(50000) == "a"*50000
+ try: buf = f_out.read(190*1024)
except IOError: pass
else: assert 0, len(buf)
- [Rdiff-backup-commits] Changes to rdiff-backup/testing/iterfiletest.py,
Ben Escoto <=