Consider redshift interval supported after further tests

This commit is contained in:
Daniele Varrazzo 2017-06-16 19:39:18 +01:00
parent 315f72862c
commit 70a2d2238e
2 changed files with 4 additions and 1 deletions

1
NEWS
View File

@ -19,6 +19,7 @@ What's new in psycopg 2.7.2
- Fixed `~psycopg2.extras.ReplicationCursor.consume_stream()` - Fixed `~psycopg2.extras.ReplicationCursor.consume_stream()`
*keepalive_interval* argument (:ticket:`#547`). *keepalive_interval* argument (:ticket:`#547`).
- Fixed random `!SystemError` upon receiving abort signal (:ticket:`#551`). - Fixed random `!SystemError` upon receiving abort signal (:ticket:`#551`).
- Parse intervals returned as microseconds from Redshift (:ticket:`#558`).
- `~psycopg2.errorcodes` map updated to PostgreSQL 10 beta 1. - `~psycopg2.errorcodes` map updated to PostgreSQL 10 beta 1.

View File

@ -422,7 +422,9 @@ class DatetimeTests(ConnectingTestCase, CommonDatetimeTestsMixin):
from datetime import timedelta from datetime import timedelta
for s, v in [ for s, v in [
('0', timedelta(0)), ('0', timedelta(0)),
('1000000', timedelta(seconds=1)), # Is this a thing? ('1', timedelta(microseconds=1)),
('-1', timedelta(microseconds=-1)),
('1000000', timedelta(seconds=1)),
('86400000000', timedelta(days=1)), ('86400000000', timedelta(days=1)),
('-86400000000', timedelta(days=-1)), ('-86400000000', timedelta(days=-1)),
]: ]: