diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-10-24 14:04:48 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-10-24 14:04:48 (GMT) |
commit | 55d110c82cb0afc79f609c568c33a16e45265d19 (patch) | |
tree | ed58bc69f498075b1c4fc289232f442ffd5f7240 /Lib | |
parent | 2123c849d1363e108889849d0be0fa7b2909564c (diff) | |
download | cpython-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.py | 2 |
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 |