Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Avoid installing tests to site-packages | Jon Dufresne | 2017-12-10 | 1 | -2/+1 |
| | | | | | | | | 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 | -1/+1 |
| | | | | | | | | | | | | | | 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/ | ||||
* | Merge remote-tracking branch 'jdufresne/import-unittest' | Daniele Varrazzo | 2017-12-02 | 1 | -1/+2 |
|\ | |||||
| * | Always import the system unittest | Jon Dufresne | 2017-12-01 | 1 | -1/+2 |
| | | | | | | | | | | | | | | 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. | ||||
* | | Remove unnecessary script_to_py3; make scripts compatible instead | Jon Dufresne | 2017-12-01 | 1 | -2/+2 |
|/ | | | | Part of the work towards moving tests out of the installed package. | ||||
* | Remove use of skip_before_python for unsupported Python versions | Jon Dufresne | 2017-11-26 | 1 | -3/+1 |
| | | | | | psycopg2 does not support Python < 2.6, remove all test guards for these versions. | ||||
* | Use modern except syntax throughout project | Jon Dufresne | 2017-11-20 | 1 | -11/+11 |
| | | | | | | The syntax "except Exception, exc:" is deprecated. All Python versions supported by psycopg2 support the newer, modern syntax. Forward compatible with future Python versions. | ||||
* | assertDsnEqual moved as TestSuite method | Daniele Varrazzo | 2017-02-06 | 1 | -7/+7 |
| | |||||
* | Merge branch 'async-keyword' | Daniele Varrazzo | 2017-02-03 | 1 | -18/+15 |
|\ | | | | | | | Close #495 | ||||
| * | Added async_ as an alias for async | Daniele Varrazzo | 2017-02-03 | 1 | -19/+16 |
| | | | | | | | | | | Added in argument for psycopg2.connect() and connection.__init__, and for the connection.async attribute. | ||||
* | | Further skipping of slow tests | Daniele Varrazzo | 2017-02-02 | 1 | -2/+3 |
|/ | |||||
* | Fixed tests failing on Python 2.6 | Daniele Varrazzo | 2016-12-24 | 1 | -2/+2 |
| | |||||
* | Use python-defined make_dsn() for ReplicationConnection class | Oleksandr Shulgin | 2016-03-08 | 1 | -1/+1 |
| | |||||
* | Merge branch 'master' into feature/replication-protocol-c-connection-object | Oleksandr Shulgin | 2016-03-04 | 1 | -34/+29 |
|\ | |||||
| * | Validate output result from make_dsn() | Daniele Varrazzo | 2016-03-03 | 1 | -22/+12 |
| | | | | | | | | | | The output is not necessarily munged anyway: if no keyword is passed, validate the input but return it untouched. | ||||
| * | Verify that the dsn is not manipulated by make_dsn if not necessary | Daniele Varrazzo | 2016-03-03 | 1 | -12/+25 |
| | | |||||
| * | Implementation of make_dsn in Python | Daniele Varrazzo | 2016-03-03 | 1 | -18/+20 |
| | | | | | | | | | | This is equivalent to what proposed in #363, but with a much simpler implementation. | ||||
* | | Rework psycopg2.connect() interface. | Oleksandr Shulgin | 2015-10-27 | 1 | -8/+24 |
|/ | |||||
* | Add test for libpq_version | Oleksandr Shulgin | 2015-06-02 | 1 | -0/+9 |
| | |||||
* | Added test to verify _psycopg can be imported | Daniele Varrazzo | 2014-08-28 | 1 | -1/+26 |
| | |||||
* | Fixed pickling of exceptions with no pgerror/pgcode set | Daniele Varrazzo | 2013-07-19 | 1 | -0/+15 |
| | | | | Fixes ticket #170. | ||||
* | Skip tests on python implementations without getrefcount() | Daniele Varrazzo | 2013-05-06 | 1 | -1/+1 |
| | | | | PyPy is one of these. | ||||
* | Testing boilerplate unified in a single base class | Daniele Varrazzo | 2013-04-07 | 1 | -10/+2 |
| | | | | | The class makes a connection always available, allows creating new connection and closes everything on tear down. | ||||
* | Merge branch 'diagnostics' into devel | Daniele Varrazzo | 2013-03-20 | 1 | -0/+32 |
|\ | |||||
| * | Added tests to verify the new Diagnostics properties | Daniele Varrazzo | 2013-03-20 | 1 | -0/+32 |
| | | | | | | | | | | | | | | diag can be used on exceptions raised without cursor and is independent from the cursor. Docs updated to reflect the changes. | ||||
* | | Tests tweaked to run on all the supported versions | Daniele Varrazzo | 2013-03-18 | 1 | -1/+2 |
|/ | |||||
* | Added test to verify Diagnostics works after copy errors | Daniele Varrazzo | 2013-03-18 | 1 | -0/+11 |
| | |||||
* | Added test to verify Diagnostics reference disposal | Daniele Varrazzo | 2013-03-18 | 1 | -0/+25 |
| | |||||
* | Added all supported properties to the Diagnostic object | Daniele Varrazzo | 2013-03-17 | 1 | -1/+31 |
| | |||||
* | Work-in-progress support for retrieving PG_DIAG result error fields. | Matthew Woodcraft | 2013-03-17 | 1 | -1/+20 |
| | |||||
* | Raise TypeError instead of InterfaceError on bad params on connect() | Daniele Varrazzo | 2012-09-26 | 1 | -6/+6 |
| | | | | | | | | | | | | | | TypeError is the standard Python error raised in this case: $ python -c "(lambda a: None)(b=10)" TypeError: <lambda>() got an unexpected keyword argument 'b' We only used to raise InterfaceError when connect was used without any parameter at all, so it's hard to think a program depending on that design. Furthermore the function has always raised (and still does) OperationalError too, if the bad argument is detected by the libpq, and that cannot be changed because we can't tell the difference from a normal connection error. | ||||
* | Dropped quirks in connection arguments handling | Daniele Varrazzo | 2012-09-25 | 1 | -0/+8 |
| | | | | | | | Now connect() raises an exception instead of swallowing keyword arguments when a connection string is specified as well Closes ticket #131. | ||||
* | Fixed exception testing on Python 3 | Daniele Varrazzo | 2012-02-23 | 1 | -4/+6 |
| | | | | | ...and so caught exceptions are local to the except suite in Py3. (Lo sapevate? Sapevatelo!) | ||||
* | Make Error and subclasses picklable | Daniele Varrazzo | 2012-01-14 | 1 | -1/+34 |
| | | | | | Useful for multiprocessing interaction. Closes ticket #90. | ||||
* | Added test to check connect() with no parameters | Daniele Varrazzo | 2011-11-17 | 1 | -0/+7 |
| | |||||
* | Escape parameters to the connection strings as required by PQconnectdb | Daniele Varrazzo | 2011-11-17 | 1 | -0/+20 |
| | |||||
* | Added test module to verify the dsn manipulation | Daniele Varrazzo | 2011-11-17 | 1 | -0/+107 |