class_docstr: Test that all type conversions are working.
class_docstr_tok: ["Test","that","all","type","conversions","are","working","."]
code: def testFloatInf(self):
      try:
          self.execute("select 'inf'::float")
      except psycopg2.DataError:
          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"),))
      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)
      )
  
imports: import string
  import ctypes
  import decimal
  import datetime
  import platform
  from .None import testutils
  import unittest
  from .testutils import ConnectingTestCase, restore_types
  from .testutils import skip_if_crdb
  import psycopg2
  from psycopg2.extensions import AsIs, adapt, register_adapter
label_desc: Use image node_id 8 for calling the TypesBasicTests obj's underlying member method code with example usage: obj.testFloatInf() and returns: self, self