| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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/
|
|\ |
|
| |
| |
| |
| |
| |
| |
| | |
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.
|
|/
|
|
| |
Part of the work towards moving tests out of the installed package.
|
|
|
|
|
| |
io.TextIOBase is available on all Python versions supported by psycopg2.
Can remove all workarounds.
|
|
|
|
|
|
| |
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's not so much about tests being slow: some just get stuck and timeout
travis.
Skipped all tests taking about more than 0.2s to run on my laptop.
Fast testing takes about 8s instead of 24.
|
| |
|
|
|
|
| |
Fix ticket #270.
|
|
|
|
| |
Close ticket #219
|
|
|
|
| |
It looks like the server doesn't send the message.
|
|
|
|
| |
Fixes ticket #180.
|
|
|
|
|
|
|
|
| |
Not an original psycopg2 bug but present in pure python implementation,
e.g. ctypes issue #25 and cffi issue #5.
https://github.com/mvantellingen/psycopg2-ctypes/issues/25
https://github.com/chtd/psycopg2cffi/pull/5
|
|
|
|
|
| |
The class makes a connection always available, allows creating
new connection and closes everything on tear down.
|
| |
|
|
|
|
| |
Some bloke finds the limit of 8K too restrictive... ticket #68.
|
|
|
|
|
|
|
| |
In case of early error, jumping to exit would have decref'd the borrowed
reference to file.
Issue spotted by Dave Malcolm, thanks!
|
| |
|
|
|
|
| |
Fixes ticket #36.
|
|\
| |
| |
| |
| |
| |
| |
| |
| | |
Conflicts:
NEWS-2.3
tests/__init__.py
tests/test_lobject.py
tests/test_quote.py
tests/testutils.py
|
| |
| |
| |
| | |
As the test suite is now part of the source distribution.
|
| | |
|
| |
| |
| |
| | |
The latter is locale-dependent and not available on Py3.
|
|/
|
|
|
|
| |
Dropped cyclic import from modules to tests: they were only working
because a second copy of the package was found in the project dir.
Use relative import so that 2to3 can do a good conversion.
|
|
|
|
|
|
| |
Tests pass or fail gracefully on older PostgreSQL versions.
If unittest2 is available, skip tests instead of printing warnings.
|
| |
|
| |
|
|
|