projects
/
tahoe-lafs
/
tahoe-lafs.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26fbe9d
)
test_backupdb: make the not-a-database file larger, since the older sqlite-2.3.2...
author
Brian Warner
<warner@lothar.com>
Fri, 20 Feb 2009 01:04:09 +0000
(18:04 -0700)
committer
Brian Warner
<warner@lothar.com>
Fri, 20 Feb 2009 01:04:09 +0000
(18:04 -0700)
src/allmydata/test/test_backupdb.py
patch
|
blob
|
history
diff --git
a/src/allmydata/test/test_backupdb.py
b/src/allmydata/test/test_backupdb.py
index 2fbcf23c052bba1f7b240429a4fbbd5bd436d0a9..31a3d05abb845f8eb104734fcd3ed1643a1f2dc1 100644
(file)
--- a/
src/allmydata/test/test_backupdb.py
+++ b/
src/allmydata/test/test_backupdb.py
@@
-28,7
+28,9
@@
class BackupDB(unittest.TestCase):
fileutil.make_dirs(basedir)
# put a non-DB file in the way
- self.writeto("not-a-database", "I do not look like a sqlite database")
+ not_a_db = ("I do not look like a sqlite database\n" +
+ "I'M NOT" * 1000) # OS-X sqlite-2.3.2 takes some convincing
+ self.writeto("not-a-database", not_a_db)
stderr_f = StringIO()
bdb = backupdb.get_backupdb(os.path.join(basedir, "not-a-database"),
stderr_f)