Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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/ | ||||
* | 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 redundant parentheses | Hugo | 2017-11-28 | 1 | -2/+2 |
| | |||||
* | Merge remote-tracking branch 'fix_lobject_factory' | Daniele Varrazzo | 2017-04-19 | 1 | -0/+7 |
|\ | |||||
| * | Python < 3.2 doesn’t have assertIsInstance | Frazer McLean | 2017-04-16 | 1 | -1/+1 |
| | | |||||
| * | Fix name of lobject keyword argument | Frazer McLean | 2017-04-16 | 1 | -0/+7 |
| | | |||||
* | | Handle lobject mode=None correctly | Frazer McLean | 2017-04-16 | 1 | -0/+7 |
|/ | |||||
* | Further skipping of slow tests | Daniele Varrazzo | 2017-02-02 | 1 | -2/+3 |
| | |||||
* | Python source cleanup using flake8 | Daniele Varrazzo | 2016-10-11 | 1 | -8/+17 |
| | |||||
* | Dropped use of b() "macro" and 2to3 fixer | Daniele Varrazzo | 2016-08-15 | 1 | -18/+17 |
| | | | | Just use the b"" strings syntax supported from python 2.6. | ||||
* | Accept overflow errors testing for LO64 funcs | Daniele Varrazzo | 2015-02-08 | 1 | -2/+2 |
| | | | | | | It is raised on 32 bits by PyArg_ParseTuple. We may work around on truncate (maybe parsing a py_ssize_t) but we would have the same problem on seek as the offset is signed. | ||||
* | Fixed typo in tests | Daniele Varrazzo | 2014-12-25 | 1 | -1/+1 |
| | |||||
* | Keep into account psycopg build in lo64 tests | Daniele Varrazzo | 2014-12-25 | 1 | -10/+23 |
| | |||||
* | Modify truncate to use lo_truncate64. Use HAVE_LO64 define to use new lo_*64 ↵ | Blake Rouse | 2014-12-25 | 1 | -18/+49 |
| | | | | methods. Check size of offset and length for versions without LO64. | ||||
* | Use lseek64 and ltell64 to support large object greater than 2gb in size. | Blake Rouse | 2014-12-25 | 1 | -0/+18 |
| | |||||
* | Check the connection is really bad on exception before closing it | Daniele Varrazzo | 2014-04-05 | 1 | -0/+1 |
| | | | | We end up here without a pgres sometimes (e.g. from lobject errors) | ||||
* | Fixed overflow opening a lobject with an oid not fitting in a signed int | Daniele Varrazzo | 2014-04-03 | 1 | -0/+6 |
| | | | | Fixes :ticket:`203`. | ||||
* | Check connection type in lobject init | Daniele Varrazzo | 2013-11-27 | 1 | -0/+4 |
| | | | | Fixes ticket #187. | ||||
* | Testing boilerplate unified in a single base class | Daniele Varrazzo | 2013-04-07 | 1 | -15/+9 |
| | | | | | 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 | -11/+8 |
| | | | | | | | Decorators not using wrap() prevent running the test from command line, e.g. with: python tests/__init__.py test_module.TestSuite.test_method | ||||
* | Fixed broken test decorator preventing 3 tests to run | Daniele Varrazzo | 2013-03-20 | 1 | -4/+6 |
| | |||||
* | Dropped duplicate import | Daniele Varrazzo | 2012-01-14 | 1 | -2/+1 |
| | |||||
* | A few large objects tests fixed | Daniele Varrazzo | 2011-01-10 | 1 | -9/+12 |
| | | | | The behavior changed in Python 3 after the lobject-decode merge. | ||||
* | Large object mode parsing refactored | Daniele Varrazzo | 2011-01-10 | 1 | -3/+3 |
| | | | | Added parsing of text/binary mode. | ||||
* | Added tests to check large objects decoding | Daniele Varrazzo | 2011-01-10 | 1 | -1/+26 |
| | |||||
* | Merge branch 'python2' into python3 | Daniele Varrazzo | 2011-01-10 | 1 | -1/+59 |
|\ | | | | | | | | | | | | | | | | | Conflicts: NEWS-2.3 tests/__init__.py tests/test_lobject.py tests/test_quote.py tests/testutils.py | ||||
| * | Invalidate large objects after a two-phase commit operation | Daniele Varrazzo | 2011-01-10 | 1 | -2/+27 |
| | | |||||
| * | Fixed segfault in large object close. | Daniele Varrazzo | 2011-01-10 | 1 | -0/+9 |
| | | | | | | | | Check that the connection is not closed/faulty before attempting lo_close. | ||||
| * | Added license to unit tests | Daniele Varrazzo | 2011-01-09 | 1 | -0/+23 |
| | | | | | | | | As the test suite is now part of the source distribution. | ||||
| * | All tests made executable. | Daniele Varrazzo | 2011-01-07 | 1 | -0/+0 |
| | | |||||
* | | Avoid ResourceWarning in tests in Python 3.2 | Daniele Varrazzo | 2011-01-08 | 1 | -3/+15 |
| | | |||||
* | | Several tests ported to Python 3. | Daniele Varrazzo | 2010-12-31 | 1 | -26/+27 |
| | | |||||
* | | Test suite converted into a proper package. | Daniele Varrazzo | 2010-12-21 | 1 | -4/+4 |
|/ | | | | | | 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. | ||||
* | Test cleanup. | Daniele Varrazzo | 2010-11-19 | 1 | -27/+40 |
| | | | | | | Tests pass or fail gracefully on older PostgreSQL versions. If unittest2 is available, skip tests instead of printing warnings. | ||||
* | Support large objects truncating. | Jan Urbański | 2010-03-29 | 1 | -1/+65 |
| | | | | | | The lobject.truncate(len=0) method will be available if psycopg2 has been built against libpq from 8.3 or later (which is when the lobject truncating support has been introduced). | ||||
* | Changes license to LGPL3 + OpenSSL exception on all source files | Federico Di Gregorio | 2010-02-12 | 1 | -0/+4 |
| | |||||
* | Fixed problem with large writes in large objects code | Federico Di Gregorio | 2009-08-09 | 1 | -0/+15 |
| | |||||
* | Fixed lobject test failures | Federico Di Gregorio | 2009-04-01 | 1 | -0/+1 |
| | |||||
* | * tests/test_lobject.py (LargeObjectTests): add more tests, | James Henstridge | 2008-05-06 | 1 | -11/+179 |
| | | | | | | | | | | | | | | | | including behaviour on closed lobjects and stale lobjects. * psycopg/lobject_type.c (psyco_lobj_close): don't mark the connection closed here because it is done by lobject_close_locked(). * psycopg/lobject_int.c (lobject_open): mark objects as not closed if we successfully open them. (lobject_close_locked): mark the lobject closed here. (lobject_export): ensure we are in a transaction, since lo_export() issues multiple queries. * psycopg/lobject_type.c (lobject_setup): make lobjects start closed. | ||||
* | Add basic tests for large object code. Fix lobject.seek() to actually | James Henstridge | 2008-05-05 | 1 | -0/+80 |
work. |