Commit 4341cca5 authored by Ezio Melotti's avatar Ezio Melotti

Try to avoid failures on the buildbot.

parent 7eff2f3e
...@@ -1074,11 +1074,9 @@ class BuiltinTest(unittest.TestCase): ...@@ -1074,11 +1074,9 @@ class BuiltinTest(unittest.TestCase):
with check_warnings() as w: with check_warnings() as w:
warnings.simplefilter("always") warnings.simplefilter("always")
self.assertRaises(TypeError, range, 1e100, 1e101, 1e101) self.assertRaises(TypeError, range, 1e100, 1e101, 1e101)
self.assertEqual(w.category, DeprecationWarning)
with check_warnings() as w: with check_warnings() as w:
warnings.simplefilter("always") warnings.simplefilter("always")
self.assertEqual(range(1.0), [0]) self.assertEqual(range(1.0), [0])
self.assertEqual(w.category, DeprecationWarning)
self.assertRaises(TypeError, range, 0, "spam") self.assertRaises(TypeError, range, 0, "spam")
self.assertRaises(TypeError, range, 0, 42, "spam") self.assertRaises(TypeError, range, 0, 42, "spam")
......
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