look for correct error-string

This commit is contained in:
meejah 2019-12-21 00:04:05 -07:00
parent 4c3d0ea6cc
commit 8965c77d63
2 changed files with 2 additions and 3 deletions

View File

@ -60,8 +60,7 @@ class BackupDB(unittest.TestCase):
bdb = backupdb.get_backupdb(where, stderr_f)
self.failUnlessEqual(bdb, None)
stderr = stderr_f.getvalue()
self.failUnlessIn("Unable to create/open backupdb file %s" % (where,), stderr)
self.failUnlessIn("unable to open database file", stderr)
self.failUnlessIn("Could not open database", stderr)
def writeto(self, filename, data):

View File

@ -159,7 +159,7 @@ class NoDefault(unittest.TestCase):
yield create_client(self.basedir)
self.assertEquals(
str(ctx.exception),
"string indices must be integers",
"string index must be an integer, not str",
)
@defer.inlineCallbacks