Daniele Varrazzo
c620f18be1
Provide cursor.description as named tuple if possible
...
If namedtuple() is not available, use regular tuples.
2011-02-19 00:05:43 +00:00
Daniele Varrazzo
79048ff19a
Merge branch 'python2' into python3
...
Conflicts:
NEWS-2.3
tests/__init__.py
tests/test_lobject.py
tests/test_quote.py
tests/testutils.py
2011-01-10 00:46:02 +00:00
Daniele Varrazzo
7c1b03bd45
All tests made executable.
2011-01-07 00:58:29 +00:00
Daniele Varrazzo
ade1b2cc7b
Test suite converted into a proper package.
...
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.
2010-12-21 05:02:19 +00:00
Daniele Varrazzo
0ad7483a2b
DictRow items can be updated. Patch by Alex Aster.
2010-12-01 13:17:12 +00:00
Daniele Varrazzo
361786f4a8
More careful connections handling during tests.
2010-11-28 17:29:37 +00:00
Daniele Varrazzo
19ead4a5cb
Test cleanup.
...
Tests pass or fail gracefully on older PostgreSQL versions.
If unittest2 is available, skip tests instead of printing warnings.
2010-11-19 03:55:37 +00:00
Daniele Varrazzo
3cae0f3f5d
NamedTupleCursor doesn't change exception when fetching with no result.
2010-11-11 10:39:42 +00:00
Daniele Varrazzo
ef7a5ee8a9
Build the namedtuple only once per execution, not once per fetch.
2010-11-11 10:39:42 +00:00
Daniele Varrazzo
abad3127ca
Added NamedTupleCursor.
2010-11-06 04:33:44 +00:00
Federico Di Gregorio
611606d532
Changes license to LGPL3 + OpenSSL exception on all source files
2010-02-12 23:34:53 +01:00
Federico Di Gregorio
e1fae0fcac
Fixed bug in RealDictCursor when prefetching
2009-05-09 14:44:59 +02:00
Federico Di Gregorio
5b04203c9f
Fixed error in register_type()
2009-03-02 10:59:52 +01:00
James Henstridge
2f3f4c1258
2008-04-21 Jorgen Austvik <Jorgen.Austvik@sun.com>
...
* tests/*.py: use the DSN constructed in tests/__init__.py.
* tests/__init__.py: allow setting the host, port and user for the
DSN used by the tests through the environment.
2008-04-20 23:12:21 +00:00
Daniele Varrazzo
67afd678b0
Added 'make check' target, running all the available tests.
...
Most of the updates have been provided by James Henstridge.
Closes ticket #195 .
2007-11-11 10:40:12 +00:00
Federico Di Gregorio
c281a38236
Releasing 2.0b4.
2005-07-17 04:26:27 +00:00
Federico Di Gregorio
9bf185f6a9
Added unit test for DictCursor.
2005-01-13 16:50:29 +00:00