diff test/db_test_base.py @ 5390:0fd27da353eb

Python 3 preparation: use parentheses in list comprehension. Tool-generated patch.
author Joseph Myers <jsm@polyomino.org.uk>
date Tue, 24 Jul 2018 22:23:46 +0000
parents d26921b851c3
children 23b8e6067f7c
line wrap: on
line diff
--- a/test/db_test_base.py	Tue Jul 24 22:23:00 2018 +0000
+++ b/test/db_test_base.py	Tue Jul 24 22:23:46 2018 +0000
@@ -415,7 +415,7 @@
             # internally for storing NULL. The others would, too
             # because metakit tries to convert date.timestamp to an int
             # for storing and fails with an overflow.
-            for d in [date.Date (x) for x in '2038', '1970', '0033', '9999']:
+            for d in [date.Date (x) for x in ('2038', '1970', '0033', '9999')]:
                 self.db.issue.set(nid, deadline=d)
                 if commit: self.db.commit()
                 c = self.db.issue.get(nid, "deadline")

Roundup Issue Tracker: http://roundup-tracker.org/