From: Brian Warner Date: Fri, 20 Feb 2009 01:04:09 +0000 (-0700) Subject: test_backupdb: make the not-a-database file larger, since the older sqlite-2.3.2... X-Git-Tag: allmydata-tahoe-1.4.0~176 X-Git-Url: https://git.rkrishnan.org/frontends/CLI.txt?a=commitdiff_plain;h=9bc08158c678f021b65a5ebfeaa1a33a98cd6d6c;p=tahoe-lafs%2Ftahoe-lafs.git test_backupdb: make the not-a-database file larger, since the older sqlite-2.3.2 on OS-X is easily fooled --- 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)