Commit 55d110c8 authored by Mark Dickinson's avatar Mark Dickinson

Add tests for sys.float_repr_style

parent 2123c849
...@@ -372,6 +372,8 @@ class SysModuleTest(unittest.TestCase): ...@@ -372,6 +372,8 @@ class SysModuleTest(unittest.TestCase):
self.assertEqual(vi[3], vi.releaselevel) self.assertEqual(vi[3], vi.releaselevel)
self.assertEqual(vi[4], vi.serial) self.assertEqual(vi[4], vi.serial)
self.assertTrue(vi > (1,0,0)) 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): def test_43581(self):
# Can't use sys.stdout, as this is a StringIO object when # Can't use sys.stdout, as this is a StringIO object when
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment