Now that I've learnt about structseq objects I felt like converting sys.float_info to a structseq. It's

readonly and help(sys.float_info) explains the attributes nicely.
This commit is contained in:
Christian Heimes 2008-01-14 04:13:37 +00:00
parent f31b69f9db
commit c94e2b5c12
5 changed files with 81 additions and 29 deletions

View file

@ -329,8 +329,8 @@ class SysModuleTest(unittest.TestCase):
self.assert_(isinstance(sys.copyright, basestring))
self.assert_(isinstance(sys.exec_prefix, basestring))
self.assert_(isinstance(sys.executable, basestring))
self.assert_(isinstance(sys.float_info, dict))
self.assertEqual(len(sys.float_info), 11)
self.assertEqual(sys.float_info.radix, 2)
self.assert_(isinstance(sys.hexversion, int))
self.assert_(isinstance(sys.maxint, int))
if test.test_support.have_unicode: