From 9bc08158c678f021b65a5ebfeaa1a33a98cd6d6c Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 19 Feb 2009 18:04:09 -0700 Subject: [PATCH] test_backupdb: make the not-a-database file larger, since the older sqlite-2.3.2 on OS-X is easily fooled --- src/allmydata/test/test_backupdb.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/allmydata/test/test_backupdb.py b/src/allmydata/test/test_backupdb.py index 2fbcf23c..31a3d05a 100644 --- 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) -- 2.45.2