commit | 4dc05c34ac5269bee55455296909ec47ad8ebb24 | [log] [tgz] |
---|---|---|
author | Serhiy Storchaka <storchaka@gmail.com> | Sun Oct 22 12:15:41 2017 +0300 |
committer | GitHub <noreply@github.com> | Sun Oct 22 12:15:41 2017 +0300 |
tree | 36e79e6d1d8e3442098e44b6c25281f99f3b1b7f | |
parent | 8fa0648f89e31f3e4b6f47435198ecf57e86b8b0 [diff] |
Fix py3k warnings in 1/0 in tests. (#4072)
diff --git a/Lib/test/test_random.py b/Lib/test/test_random.py index d2a4f21..8a6d172 100644 --- a/Lib/test/test_random.py +++ b/Lib/test/test_random.py
@@ -313,10 +313,10 @@ # long/int subclass argument. class BadInt(int): def __abs__(self): - 1/0 + 1/0.0 class BadLong(long): def __abs__(self): - 1/0 + 1/0.0 self.gen.seed(42) expected_value = self.gen.random() for seed_arg in [42L, BadInt(42), BadLong(42)]: