summaryrefslogtreecommitdiff
path: root/tests/test_lobject.py
Commit message (Collapse)AuthorAgeFilesLines
* Further skipping of slow testsDaniele Varrazzo2017-02-021-2/+3
|
* Python source cleanup using flake8Daniele Varrazzo2016-10-111-8/+17
|
* Dropped use of b() "macro" and 2to3 fixerDaniele Varrazzo2016-08-151-18/+17
| | | | Just use the b"" strings syntax supported from python 2.6.
* Accept overflow errors testing for LO64 funcsDaniele Varrazzo2015-02-081-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 testsDaniele Varrazzo2014-12-251-1/+1
|
* Keep into account psycopg build in lo64 testsDaniele Varrazzo2014-12-251-10/+23
|
* Modify truncate to use lo_truncate64. Use HAVE_LO64 define to use new lo_*64 ↵Blake Rouse2014-12-251-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 Rouse2014-12-251-0/+18
|
* Check the connection is really bad on exception before closing itDaniele Varrazzo2014-04-051-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 intDaniele Varrazzo2014-04-031-0/+6
| | | | Fixes :ticket:`203`.
* Check connection type in lobject initDaniele Varrazzo2013-11-271-0/+4
| | | | Fixes ticket #187.
* Testing boilerplate unified in a single base classDaniele Varrazzo2013-04-071-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 methodsDaniele Varrazzo2013-03-201-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 runDaniele Varrazzo2013-03-201-4/+6
|
* Dropped duplicate importDaniele Varrazzo2012-01-141-2/+1
|
* A few large objects tests fixedDaniele Varrazzo2011-01-101-9/+12
| | | | The behavior changed in Python 3 after the lobject-decode merge.
* Large object mode parsing refactoredDaniele Varrazzo2011-01-101-3/+3
| | | | Added parsing of text/binary mode.
* Added tests to check large objects decodingDaniele Varrazzo2011-01-101-1/+26
|
* Merge branch 'python2' into python3Daniele Varrazzo2011-01-101-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 operationDaniele Varrazzo2011-01-101-2/+27
| |
| * Fixed segfault in large object close.Daniele Varrazzo2011-01-101-0/+9
| | | | | | | | Check that the connection is not closed/faulty before attempting lo_close.
| * Added license to unit testsDaniele Varrazzo2011-01-091-0/+23
| | | | | | | | As the test suite is now part of the source distribution.
| * All tests made executable.Daniele Varrazzo2011-01-071-0/+0
| |
* | Avoid ResourceWarning in tests in Python 3.2Daniele Varrazzo2011-01-081-3/+15
| |
* | Several tests ported to Python 3.Daniele Varrazzo2010-12-311-26/+27
| |
* | Test suite converted into a proper package.Daniele Varrazzo2010-12-211-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 Varrazzo2010-11-191-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ński2010-03-291-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 filesFederico Di Gregorio2010-02-121-0/+4
|
* Fixed problem with large writes in large objects codeFederico Di Gregorio2009-08-091-0/+15
|
* Fixed lobject test failuresFederico Di Gregorio2009-04-011-0/+1
|
* * tests/test_lobject.py (LargeObjectTests): add more tests,James Henstridge2008-05-061-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 Henstridge2008-05-051-0/+80
work.