]> git.rkrishnan.org Git - tahoe-lafs/tahoe-lafs.git/commitdiff
test_backupdb: make the not-a-database file larger, since the older sqlite-2.3.2...
authorBrian Warner <warner@lothar.com>
Fri, 20 Feb 2009 01:04:09 +0000 (18:04 -0700)
committerBrian Warner <warner@lothar.com>
Fri, 20 Feb 2009 01:04:09 +0000 (18:04 -0700)
src/allmydata/test/test_backupdb.py

index 2fbcf23c052bba1f7b240429a4fbbd5bd436d0a9..31a3d05abb845f8eb104734fcd3ed1643a1f2dc1 100644 (file)
@@ -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)