| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
Close #211.
|
| | |
|
| | |
|
| |\ |
|
| | |
| |
| |
| | |
Fix #579.
|
| |/
|
|
| |
Fix #652
|
| |
|
|
|
|
|
|
| |
For library end users, there is no need to install tests alongside the
package itself. This keeps the tests available for development without
adding extra packages to user's site-packages directory. Reduces the
size of the installed package. Avoids accidental execution of test code
by an installed package.
|
| |
|
|
|
|
|
|
|
|
|
| |
Per the functions documentation, this argument is not supported on
Python 3. Skip it during tests.
> :param unicode: if `!True`, keys and values returned from the database
> will be `!unicode` instead of `!str`. The option is not available on
> Python 3
Work towards moving tests outside of the installed package.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
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/
|
| |
|
|
| |
Forward compatible with newer Pythons.
|
| |
|
|
|
| |
"async" will be a keyword starting with Python 3.7. On Python 3.6, use
of "async" causes a deprecation warning. Use the alias "async_" instead.
|
| |\ |
|
| | |\ |
|
| | | |
| | |
| | |
| | |
| | |
| | |
| | | |
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.
|
| | |\ \ |
|
| | | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
Not compatible with Python3. Makes the code more forward compatible with
modern Pythons.
In Python2, it was an alternative syntax for octal.
$ python3
>>> 01
File "<stdin>", line 1
01
^
SyntaxError: invalid token
|
| | |\ \ |
|
| | | |/
| | |
| | |
| | |
| | |
| | |
| | | |
Available since Python 2.6. Use of .next() is deprecated and not
supported in Python 3. Forward compatible with modern Python.
https://docs.python.org/2/library/functions.html#next
|
| | |\ \ |
|
| | | |/
| | |
| | |
| | |
| | |
| | |
| | |
| | | |
The json module is available in all Python versions supported by
psycopg2. No need to check for its presence when executing tests.
Should have been included with d58844e5483483240f97537e9a77b4e79cea2ab3
but was missed.
|
| | |/
| |
| |
| | |
Part of the work towards moving tests out of the installed package.
|
| |/
|
|
|
|
| |
Many editors automatically trim whitespace on save. By trimming all
files in one go, makes future diffs cleaner without extraneous
whitespace changes.
|
| |
|
|
| |
Closes #633.
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
All versions of Python supported by psycopg2 have builtin support for
the with statement. The import is unnecessary noise.
|
| |\ |
|
| | |
| |
| |
| |
| |
| |
| |
| | |
The decimal module is available on all Python versions supported by
psycopg2. It has been available since Python 2.4. No need to catch an
ImportError.
https://docs.python.org/2/library/decimal.html
|
| |\ \ |
|
| | |/
| |
| |
| |
| | |
psycopg2 does not support Python < 2.6, remove all test guards for these
versions.
|
| |\ \ |
|
| | |/
| |
| |
| | |
uuid is available on all Python versions supported by psycopg2.
|
| |\ \ |
|
| | |/
| |
| |
| |
| | |
io.TextIOBase is available on all Python versions supported by psycopg2.
Can remove all workarounds.
|
| |/
|
|
|
|
| |
namedtuple is available on all Python versions supported by psycopg2. It
was first introduced in Python 2.6. Can remove all workarounds and
special documentation.
|
| |
|
|
|
|
| |
The syntax "except Exception, exc:" is deprecated. All Python versions
supported by psycopg2 support the newer, modern syntax. Forward
compatible with future Python versions.
|
| | |
|
| |
|
|
|
|
|
|
|
|
| |
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.
|
| | |
|
| | |
|
| |\ |
|
| | |
| |
| |
| | |
Close #554
|
| |/ |
|
| |\ |
|
| | | |
|
| | |
| |
| |
| |
| |
| | |
Should close #558, but I'm curious to know if a number is returned
for interval < 1 day too (which wouldn't trigger the overflow, but will
finish parsing with part=0).
|