summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sys.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2007-12-01 11:20:10 (GMT)
committerChristian Heimes <christian@cheimes.de>2007-12-01 11:20:10 (GMT)
commitdfdfaab1c54425113e07b623f7dc38f60762cee1 (patch)
tree0ad4a7143ebb830c8879cc7cc686ca67dbe00e13 /Lib/test/test_sys.py
parent9f6d4ceb43583885cd090ff6adb87d31b3ac9c99 (diff)
downloadcpython-dfdfaab1c54425113e07b623f7dc38f60762cee1.zip
cpython-dfdfaab1c54425113e07b623f7dc38f60762cee1.tar.gz
cpython-dfdfaab1c54425113e07b623f7dc38f60762cee1.tar.bz2
Feature #1534
Added PyFloat_GetMax(), PyFloat_GetMin() and PyFloat_GetInfo() to the float API. Added a dictionary sys.float_info with information about the internal floating point type to the sys module.
Diffstat (limited to 'Lib/test/test_sys.py')
-rw-r--r--Lib/test/test_sys.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index f1f1524..d02412f 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -329,6 +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.assert_(isinstance(sys.hexversion, int))
self.assert_(isinstance(sys.maxint, int))
if test.test_support.have_unicode: