Mercurial > p > roundup > code
comparison test/test_dates.py @ 5380:64c4e43fbb84
Python 3 preparation: numeric literal syntax.
Fixes octal constants to use leading 0o, and removes 'L' suffixes.
Tool-assisted patch.
| author | Joseph Myers <jsm@polyomino.org.uk> |
|---|---|
| date | Tue, 24 Jul 2018 21:43:32 +0000 |
| parents | 43a1f7fe39f5 |
| children | db429c75caec |
comparison
equal
deleted
inserted
replaced
| 5379:17edccfe1755 | 5380:64c4e43fbb84 |
|---|---|
| 452 ae(str(date), '1970-01-01.00:00:00') | 452 ae(str(date), '1970-01-01.00:00:00') |
| 453 date = Date(time.gmtime(0x7FFFFFFF)) | 453 date = Date(time.gmtime(0x7FFFFFFF)) |
| 454 ae(date.timestamp(), 2147483647) | 454 ae(date.timestamp(), 2147483647) |
| 455 ae(str(date), '2038-01-19.03:14:07') | 455 ae(str(date), '2038-01-19.03:14:07') |
| 456 date = Date('1901-12-13.20:45:52') | 456 date = Date('1901-12-13.20:45:52') |
| 457 ae(date.timestamp(), -0x80000000L) | 457 ae(date.timestamp(), -0x80000000) |
| 458 ae(str(date), '1901-12-13.20:45:52') | 458 ae(str(date), '1901-12-13.20:45:52') |
| 459 date = Date('9999') | 459 date = Date('9999') |
| 460 ae (date.timestamp(), 253370764800.0) | 460 ae (date.timestamp(), 253370764800.0) |
| 461 date = Date('0033') | 461 date = Date('0033') |
| 462 ae (date.timestamp(), -61125753600.0) | 462 ae (date.timestamp(), -61125753600.0) |
