Commits

Florent Xicluna committed 4b23e26

Merged revisions 82529 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/release27-maint

........
r82529 | florent.xicluna | 2010-07-04 16:24:40 +0200 (dim., 04 juil. 2010) | 1 line

Issue #9145: Fix a regression due to r79539
........

Comments (0)

Files changed (2)

Lib/test/test_coercion.py

 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):
             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)],
                          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__":
 Tests
 -----
 
+- Issue #9145: Fix test_coercion failure in refleak runs.
+
 - Issue #8433: Fix test_curses failure caused by newer versions of
   ncurses returning ERR from getmouse() when there are no mouse
   events available.
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.