mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
Consider redshift interval supported after further tests
This commit is contained in:
parent
315f72862c
commit
70a2d2238e
1
NEWS
1
NEWS
|
@ -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.
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -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)),
|
||||||
]:
|
]:
|
||||||
|
|
Loading…
Reference in New Issue
Block a user