Commit 2dbf2a98 authored by Brett Cannon's avatar Brett Cannon

Add a more informative error message for test_float_parsing so the failing

locale can be known.
parent 1ac754fa
......@@ -105,8 +105,10 @@ class _LocaleTests(unittest.TestCase):
setlocale(LC_NUMERIC, loc)
except Error:
continue
self.assertEquals(int(eval('3.14') * 100), 314)
self.assertEquals(int(float('3.14') * 100), 314)
self.assertEquals(int(eval('3.14') * 100), 314,
"using eval('3.14') failed for %s" % loc)
self.assertEquals(int(float('3.14') * 100), 314,
"using float('3.14') failed for %s" % loc)
......
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