commit | 55d110c82cb0afc79f609c568c33a16e45265d19 | [log] [tgz] |
---|---|---|
author | Mark Dickinson <dickinsm@gmail.com> | Sat Oct 24 14:04:48 2009 +0000 |
committer | Mark Dickinson <dickinsm@gmail.com> | Sat Oct 24 14:04:48 2009 +0000 |
tree | ed58bc69f498075b1c4fc289232f442ffd5f7240 | |
parent | 2123c849d1363e108889849d0be0fa7b2909564c [diff] [blame] |
Add tests for sys.float_repr_style
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 @@ 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