Kaydet (Commit) b844ef79 authored tarafından Antoine Pitrou's avatar Antoine Pitrou

Silence py3k warning claiming to affect the random module

üst 9b4e5820
......@@ -52,6 +52,8 @@ class TestBasicOps(unittest.TestCase):
state3 = self.gen.getstate() # s/b distinct from state2
self.assertNotEqual(state2, state3)
# Silence py3k warnings
with test_support.check_warnings():
self.assertRaises(TypeError, self.gen.jumpahead) # needs an arg
self.assertRaises(TypeError, self.gen.jumpahead, "ick") # wrong type
self.assertRaises(TypeError, self.gen.jumpahead, 2.3) # wrong type
......
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