<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/python-packages/psycopg2.git/tests/test_dates.py, branch expand-version</title>
<subtitle>github.com: psycopg/psycopg2.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/'/>
<entry>
<title>Fixed test in asian time zones</title>
<updated>2018-01-10T23:58:28+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2018-01-10T23:52:03+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=a78ac3c1253717f1f0f8f87f0c868e54f42af440'/>
<id>a78ac3c1253717f1f0f8f87f0c868e54f42af440</id>
<content type='text'>
Fix #652
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Fix #652
</pre>
</div>
</content>
</entry>
<entry>
<title>Use relative imports throughout tests</title>
<updated>2017-12-10T18:51:07+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2017-12-04T02:47:19+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=1a8e992fcc87b2d15911b60cc9220ec50a70a4ff'/>
<id>1a8e992fcc87b2d15911b60cc9220ec50a70a4ff</id>
<content type='text'>
The tests relied on Python2 relative import semantics. Python3 changed
import semantics to always search sys.path by default. To import using a
relative path it must have a leading dot.

Forward compatible with newer Pythons.

Works towards the goal of moving tests outside of the installed package.

For more information, see PEP-328:

https://www.python.org/dev/peps/pep-0328/
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
The tests relied on Python2 relative import semantics. Python3 changed
import semantics to always search sys.path by default. To import using a
relative path it must have a leading dot.

Forward compatible with newer Pythons.

Works towards the goal of moving tests outside of the installed package.

For more information, see PEP-328:

https://www.python.org/dev/peps/pep-0328/
</pre>
</div>
</content>
</entry>
<entry>
<title>Always import the system unittest</title>
<updated>2017-12-02T02:35:30+00:00</updated>
<author>
<name>Jon Dufresne</name>
<email>jon.dufresne@gmail.com</email>
</author>
<published>2017-12-02T01:59:53+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=fcc083dc123946039fdfc88c55bbd4902dadd52a'/>
<id>fcc083dc123946039fdfc88c55bbd4902dadd52a</id>
<content type='text'>
There is no need to import testutils.unittest instead of simply
unittest. They are simple aliases. Use system unittest to be more
regular, consistent as well as idiomatic with the wider Python
community.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
There is no need to import testutils.unittest instead of simply
unittest. They are simple aliases. Use system unittest to be more
regular, consistent as well as idiomatic with the wider Python
community.
</pre>
</div>
</content>
</entry>
<entry>
<title>Added back timestamptz[] default cast</title>
<updated>2017-07-24T13:23:36+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2017-07-24T13:20:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=775de754cf9bace67bb1dbd1f064886ee835e663'/>
<id>775de754cf9bace67bb1dbd1f064886ee835e663</id>
<content type='text'>
It was registered as side effect of an excessive definition that got
cleaned up in 338dbe70a6c78c7edddea985e2386ebd864378c6.

Looking at other removed redundant type oids, this was the only one
missing from the `string_types` map.

Close #578.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
It was registered as side effect of an excessive definition that got
cleaned up in 338dbe70a6c78c7edddea985e2386ebd864378c6.

Looking at other removed redundant type oids, this was the only one
missing from the `string_types` map.

Close #578.
</pre>
</div>
</content>
</entry>
<entry>
<title>Consider redshift interval supported after further tests</title>
<updated>2017-06-16T18:39:18+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2017-06-16T18:39:18+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=70a2d2238e84ea8382bf994f2f79a008dbf5984d'/>
<id>70a2d2238e84ea8382bf994f2f79a008dbf5984d</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Parse a number as microseconds when casting interval</title>
<updated>2017-06-15T23:54:38+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2017-06-15T23:54:38+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=315f72862cb605b4e9f8d127dcc87bbffff6ffa0'/>
<id>315f72862cb605b4e9f8d127dcc87bbffff6ffa0</id>
<content type='text'>
Should close #558, but I'm curious to know if a number is returned
for interval &lt; 1 day too (which wouldn't trigger the overflow, but will
finish parsing with part=0).
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Should close #558, but I'm curious to know if a number is returned
for interval &lt; 1 day too (which wouldn't trigger the overflow, but will
finish parsing with part=0).
</pre>
</div>
</content>
</entry>
<entry>
<title>Return objects with timezone parsing infinity timestamptz</title>
<updated>2017-03-22T03:03:02+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2017-03-22T03:03:02+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=7214c6652e579ebf8b52c41473f7253866b3d646'/>
<id>7214c6652e579ebf8b52c41473f7253866b3d646</id>
<content type='text'>
Close #536.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Close #536.
</pre>
</div>
</content>
</entry>
<entry>
<title>Skip test on PG version with bad interval rounding</title>
<updated>2017-03-01T02:14:35+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2017-03-01T00:44:28+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=3638d349ba4cc8f321015dfa427f2e873116c9dc'/>
<id>3638d349ba4cc8f321015dfa427f2e873116c9dc</id>
<content type='text'>
On these ancient versions:

    =# select '999999:00:00.1'::interval;
                interval
    --------------------------------
     41666 days 15:00:00.0999999046
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
On these ancient versions:

    =# select '999999:00:00.1'::interval;
                interval
    --------------------------------
     41666 days 15:00:00.0999999046
</pre>
</div>
</content>
</entry>
<entry>
<title>Handle overflow in interval parsing</title>
<updated>2017-02-24T13:23:56+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2017-02-24T13:03:54+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=691df4952ba9132f6af012f021c0db04c8681d9e'/>
<id>691df4952ba9132f6af012f021c0db04c8681d9e</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Parse interval only using integers</title>
<updated>2017-02-24T02:48:41+00:00</updated>
<author>
<name>Daniele Varrazzo</name>
<email>daniele.varrazzo@gmail.com</email>
</author>
<published>2017-02-24T02:48:41+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/python-packages/psycopg2.git/commit/?id=834e9996dac55b230d26bc5b3a3d7c56e9bf92e2'/>
<id>834e9996dac55b230d26bc5b3a3d7c56e9bf92e2</id>
<content type='text'>
(almost... except for micros rounding)

While this is probably an improvement on the previous implementation,
I am largely waving a dead chicken at windows, which keeps failing to
pass the seconds overflow test. If it doesn't pass now either I'll start
blaming Python's timedelta.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
(almost... except for micros rounding)

While this is probably an improvement on the previous implementation,
I am largely waving a dead chicken at windows, which keeps failing to
pass the seconds overflow test. If it doesn't pass now either I'll start
blaming Python's timedelta.
</pre>
</div>
</content>
</entry>
</feed>
