[issue11578] Increase test coverage for timeit.py

2011-03-16 Thread Michael Henry
New submission from Michael Henry : The timeit.py module has no specific tests. The attached patch adds Lib/test/test_timeit.py for unit testing, along with slight modifications to timeit.py to support predictable unit testing. -- components: Library (Lib) files: timeit_unit_test.patch

[issue11549] Rewrite peephole to work on AST

2011-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: I've been focusing on softer targets during the sprints - I'll dig into this once I'm back home and using my desktop machine again. -- ___ Python tracker __

[issue11439] subversion keyword breakage

2011-03-16 Thread Stefan Krah
Stefan Krah added the comment: I've also looked at the keyword extension, but for example HeadURL does not seem to be supported by default: http://comments.gmane.org/gmane.comp.version-control.mercurial.devel/31214 -- ___ Python tracker

[issue11243] email/message.py str conversion

2011-03-16 Thread Steffen Daode Nurpmeso
Steffen Daode Nurpmeso added the comment: David, it's so hard to tell! If you want a big fat thing that misuses your code, try out my S-Postman (it's on Bitbucket and no URL from me and you need tip). And i could post you a small config and the EMAIL breaking patch for it and a 430KB TBZ arch

[issue11439] subversion keyword breakage

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: These "verbose numbers" don't seem to serve a purpose, they should simply be removed (or replaced by a static, non-moving number higher than the highest svn rev). The keyword extension is generally frown upon, because it introduces complexity, performance is

[issue11439] subversion keyword breakage

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: "version numbers", not "verbose numbers", sorry. -- ___ Python tracker ___ ___ Python-bugs-list mai

[issue11504] test_subprocess failure

2011-03-16 Thread Reid Kleckner
Reid Kleckner added the comment: :( Thanks for spotting these. Is there an easier way for me to be notified if these particular tests fail? Some of these are not in the "stable" builder set. Sorry to leave the builders broken for so long. I just upped the timeouts to 3 seconds. I guess t

[issue11503] Expand test coverage in posixpath

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset f11da6cecffd by Michael Foord in branch '3.2': Closes issue 11503. Improves test coverage of posixpath. http://hg.python.org/cpython/rev/f11da6cecffd -- nosy: +python-dev resolution: -> fixed stage: patch review -> committed/rejected statu

[issue11504] test_subprocess failure

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > Thanks for spotting these. Is there an easier way for me to be > notified if these particular tests fail? Not really. There is no infrastructure to notify test failures to specific e-mails depending on which test failed. > Some of these are not in the "st

[issue11578] Increase test coverage for timeit.py

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 628a3679dc14 by R David Murray in branch '3.2': #11578: add unit tests for timeit module. http://hg.python.org/cpython/rev/628a3679dc14 New changeset 2f443a200b8c by R David Murray in branch 'default': Merge #11578 test from 3.2. http://hg.python.o

[issue11578] Increase test coverage for timeit.py

2011-03-16 Thread R. David Murray
R. David Murray added the comment: We commented out a few of the tests because they took too long to run due to the large default loop count. timeit would have to be further modified to support testing the default, which probably isn't worth it. -- resolution: -> accepted stage: ->

[issue10684] Folders get deleted when trying to change case with shutil.move (case insensitive file systems only)

2011-03-16 Thread Tim Golden
Tim Golden added the comment: Patch fixes the issue and tests run ok on 3.3 Win7; just building a 2.7 branch to test -- ___ Python tracker ___ _

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Arkady Koplyarov
Arkady Koplyarov added the comment: The testcase updated accordingly to Nick Coghlan's suggestion to use assertRaises() since the testcase deals with an exception. -- Added file: http://bugs.python.org/file21252/testcase_for_binhex_module_2.patch __

[issue4492] httplib code thinks it closes connection, but does not

2011-03-16 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue5633] fix for timeit when the statment is a string and the setup is not (and tests)

2011-03-16 Thread Michael Henry
Michael Henry added the comment: Issue #11578 added unit tests for timeit.py. Because of this bug, two tests were omitted. In the attached patch are the previously withheld unit tests and an alternate method of fixing the bug (developed before Tim's fix was noticed). It's not clear to me wha

[issue900744] catch invalid chunk length in httplib read routine

2011-03-16 Thread Florent Xicluna
Changes by Florent Xicluna : -- nosy: +flox ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11578] Increase test coverage for timeit.py

2011-03-16 Thread Michael Henry
Michael Henry added the comment: Issue #5633 contains two additional unit tests that can't be added until that ticket's bug is fixed. -- nosy: +rhettinger resolution: accepted -> status: closed -> open ___ Python tracker

[issue7013] Httplib read routine is not tolerant to not well-formed chunked http responses.

2011-03-16 Thread Florent Xicluna
Florent Xicluna added the comment: Duplicate of #900744 -- resolution: -> duplicate status: open -> closed superseder: -> catch invalid chunk length in httplib read routine ___ Python tracker

[issue11401] email.header error during .flatten()

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset d9c3cfd36b58 by R David Murray in branch '3.1': #11401: handle headers with no value. http://hg.python.org/cpython/rev/d9c3cfd36b58 New changeset 2de45ced8291 by R David Murray in branch '3.2': Merge #11401 fix from 3.1. http://hg.python.org/cpytho

[issue11401] email.header error during .flatten()

2011-03-16 Thread R. David Murray
R. David Murray added the comment: OK, now this bit works like it did in Python2. -- resolution: -> fixed stage: needs patch -> committed/rejected status: open -> closed ___ Python tracker ___

[issue11578] Increase test coverage for timeit.py

2011-03-16 Thread R. David Murray
Changes by R. David Murray : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://m

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Arkady Koplyarov
Arkady Koplyarov added the comment: The testcase provided shows up a resource leakage: - C:\_cpython\cpython>PCbuild\python_d.exe -m test.regrtest test_binhex [1/1] test_binhex C:\_cpython\cpython\lib\unittest\case.py:574: ResourceWarning: unclosed file <_io.BufferedWriter name='@test_5592

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2011-03-16 Thread Michael Foord
Michael Foord added the comment: I need to check that the implementation has been backported to 2.7 completely / correctly. Raymond made some changes (output format and a bugfix) that may not have been backported yet. -- ___ Python tracker

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread SilentGhost
SilentGhost added the comment: Arkady, I don't see why you need to catch exception. Just wrap the _writeinfo call into a try-finally block, and close ofp in the finally. -- nosy: +SilentGhost ___ Python tracker _

[issue11564] pickle not 64-bit ready

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > On Tue, Mar 15, 2011 at 7:05 PM, Antoine Pitrou > wrote: > .. > > - (bugfix) raise a proper exception when an object too large for handling > > by pickle is given > > What would be the "proper exception" here? OverflowError. This is the exception that get

[issue11564] pickle not 64-bit ready

2011-03-16 Thread Alexander Belopolsky
Alexander Belopolsky added the comment: On Wed, Mar 16, 2011 at 6:59 PM, Antoine Pitrou wrote: .. >> >> What would be the "proper exception" here? > > OverflowError. This is the exception that gets raised when some > user-supplied value exceeds some internal limit. I don't think so. OverflowE

[issue11575] addresses.txt file leaks into search engines

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I've asked the website team to see if they can adjust the robots.txt > file Is there a problem with the robots.txt? It already disallows all robots. If Google ignores the robots.txt, then someone should complain to Google. -- nosy: +georg.brandl, pit

[issue11557] Increase coverage in logging module

2011-03-16 Thread Vinay Sajip
Changes by Vinay Sajip : -- assignee: -> vinay.sajip ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://ma

[issue11557] Increase coverage in logging module

2011-03-16 Thread Vinay Sajip
Changes by Vinay Sajip : -- nosy: +drakeol ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.o

[issue4114] struct returns incorrect 4 byte float

2011-03-16 Thread Robert Withrow
Robert Withrow added the comment: I have to disagree. It seems entirely reasonable to expect that unpack should return the same value passed to pack. That it doesn't (as of 2.6.5 at least) is completely unexpected and undocumented. And yes I understand the limitations of floating point num

[issue11564] pickle not 64-bit ready

2011-03-16 Thread Antoine Pitrou
Antoine Pitrou added the comment: > I don't think so. OverflowError is a subclass of ArithmeticError and > is raised when result of an arithmetic operation cannot be represented > by the python type. For example, If you grep for OverflowError in the C code base, you'll see that it is in prac

[issue4114] struct returns incorrect 4 byte float

2011-03-16 Thread R. David Murray
Changes by R. David Murray : -- nosy: +mark.dickinson ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mai

[issue11549] Rewrite peephole to work on AST

2011-03-16 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue11564] pickle not 64-bit ready

2011-03-16 Thread Nik Galitsky
Nik Galitsky added the comment: Thank you all for your responses. While getting the meaningful error message in this case is very important, the main thing for us is to somehow fix this problem to allow larger objects serialization which is not at all uncommon on a 64-bit machines with large

[issue6863] Wrong linker command if CXX set to "ccache g++"

2011-03-16 Thread Ralf Schmitt
Changes by Ralf Schmitt : -- nosy: +schmir ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11505] string.py increased test coverage

2011-03-16 Thread Jérôme Radix
Jérôme Radix added the comment: There seems to be a small problem with parameters when calling _vformat. Your test is OK because _vformat raises an exception before using those parameters. See test_vformat_assert.patch for a correction proposal. -- nosy: +jerome.radix Added file: http

[issue11243] email/message.py str conversion

2011-03-16 Thread R. David Murray
R. David Murray added the comment: Steffen, what you are doing in 11243-test is not something that the current email package supports. String input to message_as_string must be ASCII only in email 5.1/python3.2. Likewise for decode_header. To get unicode in to a header, you have to pass it

[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-16 Thread Tom N
Tom N added the comment: I have backported the code from python 3, to apply to the current 2.7 branch. All tests pass, and my machine reports "Content-type: text/html; charset=UTF-8", which appears to be correct. -- keywords: +patch nosy: +Tom.N Added file: http://bugs.python.org/file

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Arkady Koplyarov
Arkady Koplyarov added the comment: Well, I believe that in BinHex.__init__() I cannot just wrap the _writeinfo call into a try-finally block, and close ofp in the finally. I see that in the case of normal operation when the exception is not thrown, the output file descriptor ofp is used in b

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset d8eaeee1c063 by Michael Foord in branch '2.7': Issue #10242: backport of more fixes to unittest.TestCase.assertItemsEqual http://hg.python.org/cpython/rev/d8eaeee1c063 -- nosy: +python-dev ___ Python tra

[issue11573] Improve Unicode Documentation with Known Caveats

2011-03-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue4114] struct returns incorrect 4 byte float

2011-03-16 Thread Martin v . Löwis
Martin v. Löwis added the comment: Robert: Can you please suggest an algorithm that would have given the result you expect (preferably as a C program, using a string literal as its input, for some platform)? Ideally, we would stick to the example given by the OP. -- _

[issue11574] Unicode Fallback Encoding on Python 3.3

2011-03-16 Thread Ned Deily
Changes by Ned Deily : -- nosy: +haypo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/m

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2011-03-16 Thread Michael Foord
Michael Foord added the comment: Fixes backported to assertItemsEqual in 2.7. -- resolution: -> fixed stage: -> committed/rejected ___ Python tracker ___ _

[issue10979] setUpClass exception causes explosion with "-b"

2011-03-16 Thread Michael Foord
Changes by Michael Foord : -- versions: +Python 3.2, Python 3.3 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-16 Thread Guido van Rossum
Guido van Rossum added the comment: Looks good, this should be committed to the 2.5 branch first, then merged to 2.6, then to 2.7. -- ___ Python tracker ___

[issue11243] email/message.py str conversion

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 74a8c46fb272 by R David Murray in branch '3.2': #11243: tests and fixes for handling of 'dirty data' in additional methods http://hg.python.org/cpython/rev/74a8c46fb272 New changeset 82ecfcd31250 by R David Murray in branch 'default': Merge #11243

[issue11243] email/message.py str conversion

2011-03-16 Thread R. David Murray
R. David Murray added the comment: I'm closing this issue. If you have a specific test case that is still failing, please open a new issue. And thanks for testing this fix. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed

[issue11577] testcase for exception binhex.Error

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 5c2d15c6007e by Nick Coghlan in branch '3.2': Close #11577: Improve binhex test coverage and fix ResourceWarning http://hg.python.org/cpython/rev/5c2d15c6007e -- nosy: +python-dev resolution: -> fixed stage: -> committed/rejected status:

[issue11459] Python select.select does not correctly report read readyness

2011-03-16 Thread Novimir Pablant
Novimir Pablant added the comment: I agree with Gregory that fixing this in 3.1 and 3.2 is the way to go. Otherwise I would suggest changing the documentation to match the behavior. -- ___ Python tracker ___

[issue11549] Rewrite peephole to work on AST

2011-03-16 Thread Eugene Toder
Eugene Toder added the comment: I've updated patches on Rietveld with some small changes. This includes better code generation for boolops used outside of conditions and cleaned up optimize_jumps(). This is probably the last change before I get some feedback. Also, I forgot to mention yesterda

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Martin v . Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file21217/b9b7d4c10bc4.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Martin v . Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file21256/f1bd5468dae6.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Martin v . Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file21256/f1bd5468dae6.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Martin v . Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file21257/f1bd5468dae6.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Martin v . Löwis
Changes by Martin v. Löwis : Removed file: http://bugs.python.org/file21257/f1bd5468dae6.diff ___ Python tracker ___ ___ Python-bugs-list mail

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Martin v . Löwis
Changes by Martin v. Löwis : Added file: http://bugs.python.org/file21258/f1bd5468dae6.diff ___ Python tracker ___ ___ Python-bugs-list mailin

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: The draft code is now only on the "respect_LHS_precedence" branch of my sandbox repository. -- ___ Python tracker ___ __

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Nick Coghlan
Nick Coghlan added the comment: Well, there and in the named diff file on here, of course. -- ___ Python tracker ___ ___ Python-bugs-

[issue11477] Bug in code dispatching based on internal slots

2011-03-16 Thread Alex Gaynor
Changes by Alex Gaynor : -- nosy: +alex ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/

[issue1681333] email.header unicode fix

2011-03-16 Thread R. David Murray
R. David Murray added the comment: I'm rejecting this. There is more than one bug here, but it starts with the fact that ('xxx', None) is treated the same as ('xxx', 'us-ascii'). In the first case it would be nice if a space was used to separate two of them in a row. In the second case a s

[issue11549] Rewrite peephole to work on AST

2011-03-16 Thread Eugene Toder
Eugene Toder added the comment: Just for fun I've run pystones. W/o my changes it averages to about 70k, with my changes to about 72.5k. -- ___ Python tracker ___ _

[issue3851] IDLE: Pressing "Home" on Windows places cursor before ">>>" instead of after. Solution offered.

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset 664a129c01f7 by Kurt B. Kaiser in branch '2.7': toggle non-functional when NumLock set. http://hg.python.org/cpython/rev/664a129c01f7 -- nosy: +python-dev ___ Python tracker

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-16 Thread Jeff McNeil
Changes by Jeff McNeil : -- nosy: +mcjeff ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.or

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-16 Thread Senthil Kumaran
New submission from Senthil Kumaran : Here is the make log and a patch to ignore looking for subversion keyword and assume some defaults (same is done in 2.6 + higher). -- components: Installation files: make-error.log messages: 131216 nosy: loewis, orsenthil priority: normal severity:

[issue11579] python 2.5 does not build from hg - looks for subversion keywords

2011-03-16 Thread Senthil Kumaran
Changes by Senthil Kumaran : -- keywords: +patch Added file: http://bugs.python.org/file21260/ignore_subversion_keywords.diff ___ Python tracker ___ _

[issue10979] setUpClass exception causes explosion with "-b"

2011-03-16 Thread Michael Foord
Michael Foord added the comment: Thanks for finding this Brandon. The same problem probably exists for setupmodule and the teardown variants too. The issue is that the sys.stdout manipulation is done by result.startTest but setUpClass and setUpModule are executed by the suite outside the norm

[issue11580] Add width and precision formatters to PyBytes_FromFormatV()

2011-03-16 Thread Ray.Allen
New submission from Ray.Allen : By working on some PyUnicode_FromFormatV() related issue(#7330, #10829), I found some same problems with PyBytes_FromFormatV(): It doesn't support width formatter for %u, %i, %x, %d, %s, also it doesn't support %lld and %llu. Attached patch fix the problem: Ad

[issue11567] http.server error message format

2011-03-16 Thread gennad
gennad added the comment: I take this issue -- nosy: +gennad ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue11567] http.server error message format

2011-03-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: go ahead. please submit a patch. -- assignee: -> orsenthil nosy: +orsenthil type: performance -> behavior versions: +Python 3.3 ___ Python tracker __

[issue10535] Enable warnings by default in unittest

2011-03-16 Thread Michael Foord
Michael Foord added the comment: Does Brian's patch still need applying? (Can this be closed?) -- ___ Python tracker ___ ___ Python-b

[issue10535] Enable warnings by default in unittest

2011-03-16 Thread Ezio Melotti
Ezio Melotti added the comment: Brian's patch is not yet applied afaik, but I couldn't see the warnings here, so it might be something specific to Windows. Brian, can you confirm if you still see the problem? Changing the warning type (to UnittestWarning) and the error message can still be d

[issue1681333] email.header unicode fix

2011-03-16 Thread Tokio Kikuchi
Tokio Kikuchi added the comment: OK. I understand but slightly disappointed because four years have passed since this issue was raised and these years are included in the 'such long standing' period. -- ___ Python tracker

[issue10242] unittest's assertItemsEqual() method makes too many assumptions about its input

2011-03-16 Thread Ezio Melotti
Changes by Ezio Melotti : -- status: open -> closed ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-16 Thread Jeff McNeil
Jeff McNeil added the comment: So, I've been meaning to get more into contributing back to Python and I found this one somewhat interesting. As it turns out, even the following simple script raises the same warning: [jeff@martian cpython]$ ./python -c 'import urllib.request; urllib.request.

[issue11563] test_urllibnet is triggering a ResourceWarning

2011-03-16 Thread Senthil Kumaran
Senthil Kumaran added the comment: Yes, go ahead with the patch. -- nosy: +orsenthil ___ Python tracker ___ ___ Python-bugs-list mail

[issue11459] Python select.select does not correctly report read readyness

2011-03-16 Thread Gregory P. Smith
Gregory P. Smith added the comment: yeah i figured importing io from os at the top level might be a problem. it is not important for the default to be that exact value, even something safely on the small side like 512 will work. but we could just have the default be set in the code by doing

[issue11567] http.server error message format

2011-03-16 Thread Gennadiy Zlobin
Gennadiy Zlobin added the comment: Hi guys, this is my first patch for the Python interpreter. Hope it is ok, but if it is not, be sure to comment and I'll fix it ASAP -- keywords: +patch Added file: http://bugs.python.org/file21262/11567.patch ___ P

[issue11442] list_directory() in SimpleHTTPServer.py should add charset=... to Content-type header

2011-03-16 Thread Roundup Robot
Roundup Robot added the comment: New changeset e9724d7abbc2 by Senthil Kumaran in branch '2.5': Fix issue11442 - Add a charset parameter to the Content-type to avoid XSS attacks. http://hg.python.org/cpython/rev/e9724d7abbc2 -- nosy: +python-dev ___

<    1   2