summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-10-24 14:04:48 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-10-24 14:04:48 (GMT)
commit55d110c82cb0afc79f609c568c33a16e45265d19 (patch)
treeed58bc69f498075b1c4fc289232f442ffd5f7240 /Lib
parent2123c849d1363e108889849d0be0fa7b2909564c (diff)
downloadcpython-55d110c82cb0afc79f609c568c33a16e45265d19.zip
cpython-55d110c82cb0afc79f609c568c33a16e45265d19.tar.gz
cpython-55d110c82cb0afc79f609c568c33a16e45265d19.tar.bz2
Add tests for sys.float_repr_style
Diffstat (limited to 'Lib')
-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 cac90f4..699d5a6 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -372,6 +372,8 @@ class SysModuleTest(unittest.TestCase):
self.assertEqual(vi[3], vi.releaselevel)
self.assertEqual(vi[4], vi.serial)
self.assertTrue(vi > (1,0,0))
+ self.assertIsInstance(sys.float_repr_style, str)
+ self.assertTrue(sys.float_repr_style in ('short', 'legacy'))
def test_43581(self):
# Can't use sys.stdout, as this is a StringIO object when