comparison 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
comparison
equal deleted inserted replaced
5389:f8673e720f30 5390:0fd27da353eb
413 self.assertNotEqual(b, date.Date('1970-1-1.00:00:00')) 413 self.assertNotEqual(b, date.Date('1970-1-1.00:00:00'))
414 # The 1970 date will fail for metakit -- it is used 414 # The 1970 date will fail for metakit -- it is used
415 # internally for storing NULL. The others would, too 415 # internally for storing NULL. The others would, too
416 # because metakit tries to convert date.timestamp to an int 416 # because metakit tries to convert date.timestamp to an int
417 # for storing and fails with an overflow. 417 # for storing and fails with an overflow.
418 for d in [date.Date (x) for x in '2038', '1970', '0033', '9999']: 418 for d in [date.Date (x) for x in ('2038', '1970', '0033', '9999')]:
419 self.db.issue.set(nid, deadline=d) 419 self.db.issue.set(nid, deadline=d)
420 if commit: self.db.commit() 420 if commit: self.db.commit()
421 c = self.db.issue.get(nid, "deadline") 421 c = self.db.issue.get(nid, "deadline")
422 self.assertEqual(c, d) 422 self.assertEqual(c, d)
423 423

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