R. David Murray added the comment: All lines need to be wrapped to <80 columns.
The idea behind the loop is this: sql = "{} INTO test(id, unique_test) VALUES (?, ?)" self.cu.execute(sql.format('INSERT OR REPLACE, (1, "foo") for statement in ["INSERT OR REPLACE", "REPLACE"]: with self.subTest(statement=statement): self.cu.execute(sql.format(statement), (1, "foo")) self.assertEqual(self.cu.lastrowid, 1) What this does is run *both* tests, even if one fails, and reports the results separately (labeled with 'statement='INSERT OR REPLACE', ect). ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue16864> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com