mirror of
https://github.com/psycopg/psycopg2.git
synced 2025-03-03 15:45:46 +03:00
Skipped inf test on the platform not supporting it (win32).
This commit is contained in:
parent
1fd6b84068
commit
bb44bcd5b5
|
@ -96,6 +96,8 @@ class TypesBasicTests(unittest.TestCase):
|
||||||
self.execute("select 'inf'::float")
|
self.execute("select 'inf'::float")
|
||||||
except psycopg2.DataError:
|
except psycopg2.DataError:
|
||||||
return self.skipTest("inf::float not available on the server")
|
return self.skipTest("inf::float not available on the server")
|
||||||
|
except ValueError:
|
||||||
|
return self.skipTest("inf not available on this platform")
|
||||||
|
|
||||||
s = self.execute("SELECT %s AS foo", (float("inf"),))
|
s = self.execute("SELECT %s AS foo", (float("inf"),))
|
||||||
self.failUnless(str(s) == "inf", "wrong float quoting: " + str(s))
|
self.failUnless(str(s) == "inf", "wrong float quoting: " + str(s))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user