Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Unskip tests that work on CockroachDB v22.1 | Rafi Shamim | 2022-03-28 | 1 | -0/+3 |
| | | | | CockroachDB supports named cursors in v22.1, so more tests pass. | ||||
* | Copyright year updated to 2021 | Daniele Varrazzo | 2021-06-15 | 1 | -1/+1 |
| | | | | | ag -l Copyright | xargs sed -i \ "s/\(.*copyright (C) [0-9]\+\)\(-[0-9]\+\)\?\(.*Psycopg Team.*\)/\1-$(date +%Y)\3/I" | ||||
* | Allow libpq tests to fail | Daniele Varrazzo | 2021-05-26 | 1 | -1/+4 |
| | | | | They fail on image build when we delete the system library. | ||||
* | Merge branch 'master' into rm-2.7 | Daniele Varrazzo | 2021-05-20 | 1 | -0/+1 |
|\ | |||||
| * | Skip test_encrypt_server for CockroachDB | Rafi Shamim | 2021-04-21 | 1 | -0/+1 |
| | | |||||
* | | Upgrade f-strings with flynt -a and remove int() | Hugo van Kemenade | 2020-11-18 | 1 | -1/+1 |
| | | |||||
* | | Upgrade f-strings with flynt | Hugo van Kemenade | 2020-11-17 | 1 | -10/+7 |
| | | |||||
* | | Upgrade Python syntax with pyupgrade --py36-plus | Hugo van Kemenade | 2020-11-17 | 1 | -2/+2 |
| | | |||||
* | | Drop support for EOL Python 2.7 | Hugo van Kemenade | 2020-11-17 | 1 | -25/+8 |
|/ | |||||
* | Python 2 compatibilitycockroachdb-tests | Daniele Varrazzo | 2020-08-17 | 1 | -2/+2 |
| | |||||
* | Added possibility to skip a test only on certain crdb versions | Daniele Varrazzo | 2020-08-17 | 1 | -4/+27 |
| | |||||
* | Added ticket numbers for the tests skipped on crdb | Daniele Varrazzo | 2020-08-17 | 1 | -0/+27 |
| | |||||
* | Added missing reasons for crdb skip | Daniele Varrazzo | 2020-08-17 | 1 | -0/+3 |
| | | | | Added check to make sure a reason must be passed. | ||||
* | Added reason for skipping on CockroachDB | Daniele Varrazzo | 2020-07-27 | 1 | -10/+23 |
| | |||||
* | Some extra cursors test skipped on CockroachDB | Daniele Varrazzo | 2020-07-22 | 1 | -2/+2 |
| | | | | Skip named cursor tests | ||||
* | Get CockroachDB version from the connection info | Daniele Varrazzo | 2020-07-21 | 1 | -14/+11 |
| | |||||
* | Skip connection tests which cannot pass on CockroachDB | Daniele Varrazzo | 2020-07-21 | 1 | -0/+3 |
| | | | | | | | | | | | Features not supported seem: - isolation level (always serializable) - client encodings - notices (maybe there is a way to generate them) - 2 phase commit - reset (because of the lack of transaction deferrable) - backend pid | ||||
* | Skip cancel tests on CockroachDB | Daniele Varrazzo | 2020-07-21 | 1 | -3/+3 |
| | | | | One test moved to the async tests module, as it really belongs there. | ||||
* | All the sync tests pass on CockroachDB | Daniele Varrazzo | 2020-07-21 | 1 | -0/+13 |
| | | | | Added decorator to skip tests on crdb | ||||
* | Allow most of the async tests to pass on CockroachDB | Daniele Varrazzo | 2020-07-21 | 1 | -0/+32 |
| | | | | Added function to get crdb version from a connection | ||||
* | Copyright bumped to 2020 | Daniele Varrazzo | 2020-01-17 | 1 | -0/+1 |
| | |||||
* | Use travis test config variable 0/1 instead of blank strings | Daniele Varrazzo | 2019-10-19 | 1 | -1/+1 |
| | | | | | Travis web interface doesn't allow anymore to set an empty string as variable value. | ||||
* | Added decorator to clean up the adaptation mappings after testsfix-948 | Daniele Varrazzo | 2019-09-04 | 1 | -0/+17 |
| | | | | | | | Many tests were doing it manually, some weren't doing it and resulted in failure if run in different order. Close #948 | ||||
* | Shorter timeout in the async tests select | Daniele Varrazzo | 2019-03-16 | 1 | -2/+2 |
| | |||||
* | Use PY2, PY3 for conditional code instead of sys.version_info | Daniele Varrazzo | 2019-03-16 | 1 | -3/+3 |
| | |||||
* | Use errors module to catch a specific postgres error | Daniele Varrazzo | 2019-03-16 | 1 | -6/+3 |
| | |||||
* | Other import moved to top level in tests | Daniele Varrazzo | 2019-03-16 | 1 | -10/+7 |
| | |||||
* | TextIOBase moved to tests compat imports | Daniele Varrazzo | 2019-03-16 | 1 | -0/+3 |
| | |||||
* | Move imports to the top of the module across tests | Jon Dufresne | 2019-03-16 | 1 | -3/+3 |
| | | | | | | | | | | Allows removing many duplicate imports and better follows PEP8 guidelines: https://www.python.org/dev/peps/pep-0008/#imports > Imports are always put at the top of the file, just after any module > comments and docstrings, and before module globals and constants. | ||||
* | Copyright year updated | Daniele Varrazzo | 2019-02-17 | 1 | -1/+1 |
| | | | | | ag -l Copyright | xargs sed -i \ "s/\(.*copyright (C) [0-9]\+\)\(-[0-9]\+\)\?\(.*\)/\1-$(date +%Y)\3/I" | ||||
* | Skip tests involving ctypes on Windows | Daniele Varrazzo | 2019-02-16 | 1 | -0/+3 |
| | | | | No idea about how to import libpq. | ||||
* | Added connection.pgconn_ptr and cursor.pgresult_ptr | Daniele Varrazzo | 2019-02-16 | 1 | -0/+14 |
| | | | | | | Allow interacting with libpq in Python via ctypes. See #782. | ||||
* | Simplify 'decorate_all_tests' usage by decorating the test class | Jon Dufresne | 2018-12-01 | 1 | -73/+44 |
| | | | | | Skip tests as early as possible by decorating the whole class with unittest.skipIf instead of every test method individually. | ||||
* | Use class decorators to decorate all testsdecorators-fun | Daniele Varrazzo | 2018-10-30 | 1 | -5/+37 |
| | | | | | | Test decorators changed so that they can be applied either to a method or to a class. Of course their double nature is implemented by a decorator. | ||||
* | Full flake8 3.5 cleanup | Daniele Varrazzo | 2018-10-23 | 1 | -2/+4 |
| | |||||
* | Use the connection.info properties instead of the legacy methodsconnection-info | Daniele Varrazzo | 2018-10-13 | 1 | -4/+4 |
| | |||||
* | Prefer https:// URLs when available | Jon Dufresne | 2018-09-22 | 1 | -1/+1 |
| | |||||
* | In tests, use compat.py where there is overlap | Jon Dufresne | 2017-12-11 | 1 | -3/+2 |
| | |||||
* | 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 |
| |