Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid installing tests to site-packages | Jon Dufresne | 2017-12-10 | 1 | -0/+17 |
| | | | | | | | | 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. | ||||
* | Use relative imports throughout tests | Jon Dufresne | 2017-12-10 | 1 | -2/+2 |
| | | | | | | | | | | | | | | 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/ | ||||
* | Remove unnecessary script_to_py3; make scripts compatible instead | Jon Dufresne | 2017-12-01 | 1 | -28/+0 |
| | | | | Part of the work towards moving tests out of the installed package. | ||||
* | Dropped unused test functions | Daniele Varrazzo | 2017-11-28 | 1 | -3/+0 |
| | |||||
* | Remove redundant hasattr checks | Hugo | 2017-11-28 | 1 | -31/+2 |
| | |||||
* | Merge remote-tracking branch 'jdufresne/uuid' | Daniele Varrazzo | 2017-11-28 | 1 | -5/+0 |
|\ | |||||
| * | Remove uuid workaround for older Pythons | Jon Dufresne | 2017-11-26 | 1 | -5/+0 |
| | | | | | | | | uuid is available on all Python versions supported by psycopg2. | ||||
* | | Merge remote-tracking branch 'jdufresne/iobase' | Daniele Varrazzo | 2017-11-28 | 1 | -14/+0 |
|\ \ | |||||
| * | | Remove io.TextIOBase workaround for Python <= 2.5 | Jon Dufresne | 2017-11-26 | 1 | -14/+0 |
| |/ | | | | | | | | | io.TextIOBase is available on all Python versions supported by psycopg2. Can remove all workarounds. | ||||
* | | Remove workarounds for namedtuple on Python <= 2.5 | Jon Dufresne | 2017-11-26 | 1 | -13/+0 |
|/ | | | | | | 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. | ||||
* | Use modern except syntax throughout project | Jon Dufresne | 2017-11-20 | 1 | -3/+3 |
| | | | | | | The syntax "except Exception, exc:" is deprecated. All Python versions supported by psycopg2 support the newer, modern syntax. Forward compatible with future Python versions. | ||||
* | Skip the tests according to the earliest of libpq built/linked. | Daniele Varrazzo | 2017-03-02 | 1 | -1/+1 |
| | |||||
* | Don't try to use unittest2no-unittest2 | Daniele Varrazzo | 2017-03-01 | 1 | -8/+1 |
| | | | | | Modules importing unittest directly would miss the monkeypatch: see ticket #516. | ||||
* | Deal consistently with E'' quotes in tests | Daniele Varrazzo | 2017-02-06 | 1 | -1/+14 |
| | |||||
* | assertDsnEqual moved as TestSuite method | Daniele Varrazzo | 2017-02-06 | 1 | -4/+7 |
| | |||||
* | Merge branch 'async-keyword' | Daniele Varrazzo | 2017-02-03 | 1 | -3/+11 |
|\ | | | | | | | Close #495 | ||||
| * | Added async_ as an alias for async | Daniele Varrazzo | 2017-02-03 | 1 | -1/+5 |
| | | | | | | | | | | Added in argument for psycopg2.connect() and connection.__init__, and for the connection.async attribute. | ||||
| * | Convert warnings into errors on test | Daniele Varrazzo | 2017-02-03 | 1 | -2/+6 |
| | | |||||
* | | Added note about finding slow tests | Daniele Varrazzo | 2017-02-02 | 1 | -1/+6 |
| | | |||||
* | | Allow skipping the slow testmanylinux | Daniele Varrazzo | 2017-02-02 | 1 | -1/+10 |
|/ | | | | | | | | 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. | ||||
* | Added test to verify bug #482 | Daniele Varrazzo | 2016-12-25 | 1 | -1/+10 |
| | |||||
* | Fixed tests failing on Python 2.6 | Daniele Varrazzo | 2016-12-24 | 1 | -0/+3 |
| | |||||
* | Python source cleanup using flake8 | Daniele Varrazzo | 2016-10-11 | 1 | -5/+20 |
| | |||||
* | Merge branch 'master' into replication-protocol | Daniele Varrazzo | 2016-08-07 | 1 | -1/+1 |
|\ | | | | | | | | | Conflicts: tests/testconfig.py | ||||
| * | Fix scattered grammar/spelling errors in comments, debug output, etc. | Greg Ward | 2016-06-30 | 1 | -1/+1 |
| | | |||||
* | | Move replication connection to C level. | Oleksandr Shulgin | 2015-10-27 | 1 | -3/+0 |
| | | |||||
* | | Fix async replication and test. | Oleksandr Shulgin | 2015-10-15 | 1 | -1/+20 |
|/ | |||||
* | Report NotSupportedError for PGRES_COPY_BOTH and PGRES_SINGLE_TUPLE | Daniele Varrazzo | 2015-09-30 | 1 | -3/+26 |
| | | | | Fixes #352. | ||||
* | Add libpq version discovery | Oleksandr Shulgin | 2015-06-01 | 1 | -0/+37 |
| | |||||
* | Fix several typos | Hyunjun Kim | 2015-05-03 | 1 | -1/+2 |
| | |||||
* | Skip test_cleanup_on_badconn_close on Windows | Jason Erickson | 2014-05-19 | 1 | -0/+12 |
| | | | | | | | | | | | The Windows server version of PostgreSQL uses a function called pgkill in the file kill.c in place of the UNIX kill function. This pgkill function simulates some of the SIGHUP like commands by passing signals through a named pipe. Because it is passing the signal through a pipe, the server doesn't get the kill signal immediately and therefore fails the test on test_connection.ConnectionTests.test_cleanup_on_badconn_close. Ideally, the test should check to see if the server is running on Windows, not the psycopg. | ||||
* | New implementation of Range sorting that works for Python 2.5 to 3.3, at least. | Chris Withers | 2014-02-18 | 1 | -0/+10 |
| | |||||
* | Skip tests on python implementations without getrefcount() | Daniele Varrazzo | 2013-05-06 | 1 | -0/+9 |
| | | | | PyPy is one of these. | ||||
* | Testing boilerplate unified in a single base class | Daniele Varrazzo | 2013-04-07 | 1 | -3/+50 |
| | | | | | The class makes a connection always available, allows creating new connection and closes everything on tear down. | ||||
* | Use wrap to fix names of decorated test methods | Daniele Varrazzo | 2013-03-20 | 1 | -10/+23 |
| | | | | | | | Decorators not using wrap() prevent running the test from command line, e.g. with: python tests/__init__.py test_module.TestSuite.test_method | ||||
* | Tests tweaked to run on all the supported versions | Daniele Varrazzo | 2013-03-18 | 1 | -0/+10 |
| | |||||
* | Properly cleanup memory of broken connections | Daniele Varrazzo | 2013-03-16 | 1 | -0/+15 |
| | | | | Fixed ticket #148. | ||||
* | Parse bytea output format ourselves instead of using the libpq | Daniele Varrazzo | 2011-03-26 | 1 | -18/+0 |
| | | | | | | PG 9.0 uses the hex format by default, and clients < 9.0 can't parse that format, requiring client update and great care in what is linked at runtime, and generally giving headache to users and transitively us. | ||||
* | Raise an exception if the libpq fails to decode bytea in hex format | Daniele Varrazzo | 2011-02-23 | 1 | -0/+18 |
| | |||||
* | Provide cursor.description as named tuple if possible | Daniele Varrazzo | 2011-02-19 | 1 | -0/+13 |
| | | | | If namedtuple() is not available, use regular tuples. | ||||
* | Cleanup of skipping of testing methods on certain Py/PG versions | Daniele Varrazzo | 2011-02-15 | 1 | -43/+53 |
| | |||||
* | Python 3 conversion failure on Windows | Jason Erickson | 2011-02-11 | 1 | -3/+7 |
| | | | | | | | Windows is not able to create a tempfile with NamedTemporaryFile and then open it with a second file handle without closing the first one. Added code to close the handle, and keep the file around a little longer so it can be reopened and rewritten to again. | ||||
* | Pulled down changes from dvarrazzo branch on gh | Jason Erickson | 2011-02-10 | 1 | -0/+70 |
| | | | | | Pulled the master branch from of Daniele's psycopg branch on github and merged the changes. | ||||
* | Skip GC bug test if uuid is not available | Daniele Varrazzo | 2011-01-18 | 1 | -0/+23 |
| | |||||
* | Fixed check for pg_sleep availability in tests | Daniele Varrazzo | 2011-01-18 | 1 | -1/+1 |
| | | | | The function is available since PG 8.2. | ||||
* | Test decorator moved into the test utilities module | Daniele Varrazzo | 2011-01-09 | 1 | -0/+27 |
| | |||||
* | Added license to unit tests | Daniele Varrazzo | 2011-01-09 | 1 | -3/+22 |
| | | | | As the test suite is now part of the source distribution. | ||||
* | Deal uniformly with test servers without pg_sleep. | Daniele Varrazzo | 2010-11-28 | 1 | -1/+25 |
| | |||||
* | Fixed import of test functions from Python 2.7 unittest. | Daniele Varrazzo | 2010-11-19 | 1 | -1/+2 |
| | |||||
* | Test cleanup. | Daniele Varrazzo | 2010-11-19 | 1 | -0/+46 |
Tests pass or fail gracefully on older PostgreSQL versions. If unittest2 is available, skip tests instead of printing warnings. |