[Python-checkins] r71575 - python/branches/py3k-short-float-repr/Lib/test/test_types.py
eric.smith
python-checkins at python.org
Mon Apr 13 17:05:52 CEST 2009
Author: eric.smith
Date: Mon Apr 13 17:05:51 2009
New Revision: 71575
Log:
Another test for an existing error checks.
Modified:
python/branches/py3k-short-float-repr/Lib/test/test_types.py
Modified: python/branches/py3k-short-float-repr/Lib/test/test_types.py
==============================================================================
--- python/branches/py3k-short-float-repr/Lib/test/test_types.py (original)
+++ python/branches/py3k-short-float-repr/Lib/test/test_types.py Mon Apr 13 17:05:51 2009
@@ -619,6 +619,10 @@
# And may as well test both.
self.assertRaises(ValueError, format, 0, '1'*1000 + '.' + '1'*10000 + 'd')
+ # Make sure commas aren't allowed with various type codes
+ for code in 'xXobns':
+ self.assertRaises(ValueError, format, 0, ',' + code)
+
def test_main():
run_unittest(TypesTests)
More information about the Python-checkins
mailing list