mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-01-31 09:24:07 +03:00
Added test to check issue #40
This commit is contained in:
parent
9cb72a38da
commit
4c336a51bc
2
NEWS
2
NEWS
|
@ -28,6 +28,8 @@ What's new in psycopg 2.4
|
|||
available.
|
||||
- Added missing icon to ZPsycopgDA package, not available in Zope 2.12.9
|
||||
(ticket #30). Bug report and patch by Pumukel.
|
||||
- Fixed conversion of negative infinity (ticket #40). Bug report and patch
|
||||
by Marti Raudsepp.
|
||||
|
||||
|
||||
What's new in psycopg 2.3.2
|
||||
|
|
|
@ -113,6 +113,9 @@ class TypesBasicTests(unittest.TestCase):
|
|||
self.failUnless(str(s) == "inf", "wrong float quoting: " + str(s))
|
||||
self.failUnless(type(s) == float, "wrong float conversion: " + repr(s))
|
||||
|
||||
s = self.execute("SELECT %s AS foo", (float("-inf"),))
|
||||
self.failUnless(str(s) == "-inf", "wrong float quoting: " + str(s))
|
||||
|
||||
def testBinary(self):
|
||||
if sys.version_info[0] < 3:
|
||||
s = ''.join([chr(x) for x in range(256)])
|
||||
|
|
Loading…
Reference in New Issue
Block a user