This is with Python 2.7 and PyGreSQL trunk. Python 3 is dumping core
on me but I will attack that issue after getting Python2 to test
cleanly.
======================================================================
ERROR: testSetDecimalPoint (__main__.TestConfigFunctions)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./TEST_PyGreSQL_classic_connection.py", line 950, in
testSetDecimalPoint
r = query("select '34,25'::money").getresult()[0][0]
File "/usr/pkg/lib/python2.7/decimal.py", line 547, in __new__
"Invalid literal for Decimal: %r" % value)
File "/usr/pkg/lib/python2.7/decimal.py", line 3873, in _raise_error
raise error(explanation)
InvalidOperation: Invalid literal for Decimal: '34.25\xac'
Also, this issue happening with testInserttable1Row:
======================================================================
FAIL: testInserttable1Row (__main__.TestInserttable)
----------------------------------------------------------------------
Traceback (most recent call last):
File "./TEST_PyGreSQL_classic_connection.py", line 728, in
testInserttable1Row self.assertEqual(self.get_back(), data)
AssertionError: Lists differ: [(1, 1, 1L, True, '1801-03-04'... != [(1,
1, 1L, True, '1801-03-04'...
First differing element 0:
(1, 1, 1L, True, '1801-03-04', '03:45:00', 1.23456, 1.75, 1.875,
'125.0', 'x', 'bc', 'cdef', 'g') (1, 1, 1L, True, '1801-03-04',
'03:45:00', 1.23456, 1.75, 1.875, '1.25', 'x', 'bc', 'cdef', 'g')
And the same issue happening with testInserttable4Rows.
--
D'Arcy J.M. Cain
PyGreSQL Development Group
http://www.PyGreSQL.org IM:[email protected]
_______________________________________________
PyGreSQL mailing list
[email protected]
https://mail.vex.net/mailman/listinfo.cgi/pygresql