[Python-checkins] r84093 - in python/branches/release26-maint: Lib/test/test_coercion.py Misc/NEWS

florent.xicluna python-checkins at python.org
Mon Aug 16 18:08:13 CEST 2010


Author: florent.xicluna
Date: Mon Aug 16 18:08:12 2010
New Revision: 84093

Log:
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
........


Modified:
   python/branches/release26-maint/   (props changed)
   python/branches/release26-maint/Lib/test/test_coercion.py
   python/branches/release26-maint/Misc/NEWS

Modified: python/branches/release26-maint/Lib/test/test_coercion.py
==============================================================================
--- python/branches/release26-maint/Lib/test/test_coercion.py	(original)
+++ python/branches/release26-maint/Lib/test/test_coercion.py	Mon Aug 16 18:08:12 2010
@@ -2,6 +2,7 @@
 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 @@
             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 @@
                          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__":

Modified: python/branches/release26-maint/Misc/NEWS
==============================================================================
--- python/branches/release26-maint/Misc/NEWS	(original)
+++ python/branches/release26-maint/Misc/NEWS	Mon Aug 16 18:08:12 2010
@@ -31,6 +31,8 @@
 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.


More information about the Python-checkins mailing list