[issue9589] test_heapq: AttributeError: 'int' object has no attribute 'pop'

2010-08-14 Thread STINNER Victor
STINNER Victor added the comment: r83988 is also the correct fix for #586680: I updated this issue. -- ___ Python tracker ___ ___ Pyth

[issue9589] test_heapq: AttributeError: 'int' object has no attribute 'pop'

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue9589] test_heapq: AttributeError: 'int' object has no attribute 'pop'

2010-08-13 Thread Antoine Pitrou
Changes by Antoine Pitrou : -- assignee: -> pitrou status: pending -> open ___ Python tracker ___ ___ Python-bugs-list mailing list Un

[issue9589] test_heapq: AttributeError: 'int' object has no attribute 'pop'

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: I've committed an updated version of the C patch in r83988, after Victor's comments on IRC. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> pending ___ Python tracker

[issue9589] test_heapq: AttributeError: 'int' object has no attribute 'pop'

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a C version of addbuilddir. It solves the present issue. -- Added file: http://bugs.python.org/file18509/c-addbuildir.patch ___ Python tracker _

[issue9589] test_heapq: AttributeError: 'int' object has no attribute 'pop'

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: Here is a patch which works if the patch in #9548 is also applied. It won't work alone because opening a file in text mode currently imports locale which imports re, etc. ... all before adding the build dir to sys.path. Of course, since the logic in addbuilddi

[issue9589] test_heapq: AttributeError: 'int' object has no attribute 'pop'

2010-08-13 Thread Florent Xicluna
Florent Xicluna added the comment: For some reason, sys.modules['heapq'] contains the Python implementation instead of the C implementation. Tested with r83981 on python 3: Python 3.2a1+ (py3k:83981M, Aug 13 2010, 19:02:31) [GCC 4.3.4] on linux2 Type "help", "copyright", "credits" or "licens

[issue9589] test_heapq: AttributeError: 'int' object has no attribute 'pop'

2010-08-13 Thread Antoine Pitrou
Antoine Pitrou added the comment: This is a variant of the kind of annoyance pointed out in #9548. Here, it seems addbuilddir() in Lib/site.py shouldn't import sysconfig, because it imports the re module. -- nosy: +pitrou ___ Python tracker

[issue9589] test_heapq: AttributeError: 'int' object has no attribute 'pop'

2010-08-13 Thread Florent Xicluna
New submission from Florent Xicluna : Various buildbots show a failure on test_heapq. * "x86 FreeBSD 3.x" failed on revision r83882 (r83869 was OK) http://www.python.org/dev/buildbot/all/builders/x86%20FreeBSD%203.x/builds/492 and next runs were OK, too * "PPC (Leopard|Tiger) 3.x" and