This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: test_coercion fails in refleak runs
Type: behavior Stage: resolved
Components: Tests Versions: Python 2.6
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: flox Nosy List: barry, ezio.melotti, flox, pitrou
Priority: release blocker Keywords: patch

Created on 2010-07-02 17:35 by pitrou, last changed 2022-04-11 14:57 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue9145_for_2.6.diff flox, 2010-08-14 22:45 Patch, apply to 2.6
Messages (4)
msg109118 - (view) Author: Antoine Pitrou (pitrou) * (Python committer) Date: 2010-07-02 17:35
$ ./python -m test.regrtest -uall -R 2:3 -v test_coercion
== CPython 2.7rc2+ (trunk, Jul 2 2010, 18:50:24) [GCC 4.3.2]
==   Linux-2.6.27.10-grsec-xxxx-grs-ipv4-64-x86_64-with-debian-lenny-sid little-endian
==   /home/antoine/cpython/debug/build/test_python_19672
test_coercion
test_cmptypes (test.test_coercion.CoercionTest) ... ok
test_infinite_rec_classic_classes (test.test_coercion.CoercionTest) ... ok
test_infix_binops (test.test_coercion.CoercionTest) ... ok
test_prefix_binops (test.test_coercion.CoercionTest) ... ok

----------------------------------------------------------------------
Ran 4 tests in 0.122s

OK
beginning 5 repetitions
12345
test test_coercion crashed -- <type 'exceptions.UnboundLocalError'>: local variable 'res' referenced before assignment
Traceback (most recent call last):
  File "/home/antoine/cpython/debug/Lib/test/regrtest.py", line 873, in runtest_inner
    huntrleaks)
  File "/home/antoine/cpython/debug/Lib/test/regrtest.py", line 1003, in dash_R
    run_the_test()
  File "/home/antoine/cpython/debug/Lib/test/regrtest.py", line 989, in run_the_test
    indirect_test()
  File "/home/antoine/cpython/debug/Lib/test/test_coercion.py", line 339, in test_main
    process_infix_results()
  File "/home/antoine/cpython/debug/Lib/test/test_coercion.py", line 215, in process_infix_results
    if isinstance(res[i][6], tuple):
UnboundLocalError: local variable 'res' referenced before assignment
1 test failed:
    test_coercion
[55121 refs]
msg109220 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-07-04 14:25
Fixed with r82529
msg113935 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-08-14 22:45
This one is a (small) regression from 2.6.5.

Patch attached
msg114051 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-08-16 16:09
Fixed in 2.6.6 with release manager approval on r84093.
History
Date User Action Args
2022-04-11 14:57:03adminsetgithub: 53391
2010-08-16 16:09:01floxsetstatus: open -> closed

messages: + msg114051
2010-08-14 22:45:51floxsetstatus: closed -> open
files: + issue9145_for_2.6.diff

versions: + Python 2.6, - Python 2.7
keywords: + patch
nosy: + barry

messages: + msg113935
priority: normal -> release blocker
2010-07-04 14:25:29floxsetstatus: open -> closed
resolution: accepted -> fixed
messages: + msg109220

stage: needs patch -> resolved
2010-07-04 11:40:49floxsetassignee: flox
resolution: accepted
nosy: pitrou, ezio.melotti, flox
components: - Library (Lib)
stage: needs patch
2010-07-02 17:35:18pitroucreate