mirror of
https://github.com/python/cpython.git
synced 2025-11-03 03:22:27 +00:00
Add tests for sys.float_repr_style
This commit is contained in:
parent
2123c849d1
commit
55d110c82c
1 changed files with 2 additions and 0 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue