diff options
author | Florent Xicluna <florent.xicluna@gmail.com> | 2010-07-04 14:24:40 (GMT) |
---|---|---|
committer | Florent Xicluna <florent.xicluna@gmail.com> | 2010-07-04 14:24:40 (GMT) |
commit | 96c4df4532de5b4b223ef4f31aacbe6a97bf65b0 (patch) | |
tree | 61a35bb116cb04140bdac22b70a62f0ff8b908fd /Lib | |
parent | 9d5151a40ff1bf2ddb4fb2b034f636d59633a04a (diff) | |
download | cpython-96c4df4532de5b4b223ef4f31aacbe6a97bf65b0.zip cpython-96c4df4532de5b4b223ef4f31aacbe6a97bf65b0.tar.gz cpython-96c4df4532de5b4b223ef4f31aacbe6a97bf65b0.tar.bz2 |
Issue #9145: Fix a regression due to r79539
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_coercion.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/test/test_coercion.py b/Lib/test/test_coercion.py index 8a74b51..0ca00a6 100644 --- a/Lib/test/test_coercion.py +++ b/Lib/test/test_coercion.py @@ -2,6 +2,7 @@ import copy import unittest from test.test_support import run_unittest, TestFailed, check_warnings + # Fake a number that implements numeric methods through __coerce__ class CoerceNumber: def __init__(self, arg): @@ -222,6 +223,11 @@ def process_infix_results(): infix_results[key] = res +with check_warnings(("classic (int|long) division", DeprecationWarning), + quiet=True): + process_infix_results() + # now infix_results has two lists of results for every pairing. + prefix_binops = [ 'divmod' ] prefix_results = [ [(1,0), (1L,0L), (0.0,2.0), ((1+0j),0j), TE, TE, TE, TE, (1,0)], @@ -336,9 +342,6 @@ def test_main(): DeprecationWarning), ("classic (int|long) division", DeprecationWarning), quiet=True): - process_infix_results() - # now infix_results has two lists of results for every pairing. - run_unittest(CoercionTest) if __name__ == "__main__": |