[Python-checkins] r75667 - python/branches/py3k/Lib/test/test_sys.py
mark.dickinson
python-checkins at python.org
Sat Oct 24 16:04:48 CEST 2009
Author: mark.dickinson
Date: Sat Oct 24 16:04:48 2009
New Revision: 75667
Log:
Add tests for sys.float_repr_style
Modified:
python/branches/py3k/Lib/test/test_sys.py
Modified: python/branches/py3k/Lib/test/test_sys.py
==============================================================================
--- python/branches/py3k/Lib/test/test_sys.py (original)
+++ python/branches/py3k/Lib/test/test_sys.py Sat Oct 24 16:04:48 2009
@@ -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
More information about the Python-checkins
mailing list