mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
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:
parent
f31b69f9db
commit
c94e2b5c12
5 changed files with 81 additions and 29 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue