[issue12814] Possible intermittent bug in test_array

2011-08-21 Thread Nick Coghlan
New submission from Nick Coghlan : Had a weird bug in test_array.test_tofromstring failing on Gentoo by generating too few warning messages: http://www.python.org/dev/buildbot/all/builders/x86%20Gentoo%20Non-Debug%203.x/builds/568/steps/test/logs/stdio http://www.python.org/dev/buildbot/all/buil

[issue12813] uuid4 is not tested if a uuid4 system routine isn't present

2011-08-21 Thread Matt Joiner
New submission from Matt Joiner : The uuid.uuid4 function is not tested if a C system routine is not present, despite that uuid4 has several fallback clauses. This patch will test at least the first fallback. -- components: Library (Lib) files: uuid4-test-no-system-routine-fallback.pat

[issue7584] datetime.rfcformat() for Date and Time on the Internet

2011-08-21 Thread Martin Pool
Martin Pool added the comment: Z is well established as meaning "UTC time" so shouldn't be used for "zone not known." rfc 3393 is clear that it's equivalent to +00:00. So the questions seem to be: * should there be an i

[issue12812] libffi does not build with clang on amd64

2011-08-21 Thread Joel
New submission from Joel : tl;dr libffi needs to be updated so Python will build with clang on Linux on amd64 libffi, part of ctypes, has a test for PC relative relocations. It assembles a assembler file with CC, and looks for the string "warning" in the output. clang produces harmless warnin

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 37721ee145a2 by Nick Coghlan in branch 'default': Credit patch authors in NEWS for #6560 http://hg.python.org/cpython/rev/37721ee145a2 -- ___ Python tracker __

[issue11657] multiprocessing_{send,recv}fd fail with fds > 256

2011-08-21 Thread Nick Coghlan
Nick Coghlan added the comment: For 3.3, it may be relevant that send/recvmsg are now available via the socket API (see #6560) -- nosy: +ncoghlan ___ Python tracker ___ ___

[issue12811] Tabnanny doesn't close its tokenize files properly

2011-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset c5cb0aa5bed6 by Nick Coghlan in branch 'default': Fix #12811 by closing files promptly in tabnanny.check. Patch by Anthony Briggs. http://hg.python.org/cpython/rev/c5cb0aa5bed6 -- nosy: +python-dev ___ P

[issue10951] gcc 4.6 warnings

2011-08-21 Thread Martin Pool
Martin Pool added the comment: My patch above fixes all the messages so that you get a clean build with the current makefile. -Wuninitialized and 'offset outside constant string' would be worth fixing but I can't reproduce them in Python. I'm personally not so keen on fixing all the signed/u

[issue12811] Tabnanny doesn't close its tokenize files properly

2011-08-21 Thread Anthony Briggs
New submission from Anthony Briggs : Unlike Python 2, Python 3 warns when files aren't closed properly, which raises lots of warnings when running tabnanny: ~/devinabox/cpython$ ./python -m tabnanny Lib/ /home/anthony/devinabox/cpython/Lib/tabnanny.py:93: ResourceWarning: unclosed file <_io.Te

[issue6484] No unit test for mailcap module

2011-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 69cb66ab61cc by Nick Coghlan in branch 'default': Add unit tests for the mailcap module. Patch by Gregory Nofi (closes #6484) http://hg.python.org/cpython/rev/69cb66ab61cc -- nosy: +python-dev resolution: -> fixed stage: patch review -> co

[issue10713] re module doesn't describe string boundaries for \b

2011-08-21 Thread Martin Pool
Martin Pool added the comment: > Note, 366 above confirms it's never true for an empty string. The documentation states that \B "is just the opposite of \b" yet re.match(r'\b', '') returns None and so does \B so \B isn't the opposite of \b in all cases. This is also a bit strange if you follow

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-21 Thread Georg Brandl
Georg Brandl added the comment: Where's the doc updates for the stable branches? Also, we might think about removing this version number everywhere. -- ___ Python tracker ___ _

[issue11657] multiprocessing_{send,recv}fd fail with fds > 256

2011-08-21 Thread Petri Lehtinen
Petri Lehtinen added the comment: Charles-François Natali wrote: > Yeah, I could of course do this myself, but since Petri already > submitted a patch and seemed to be willing to update it with a test, I > thought he might be interested in this (I've also seen he's > participating to core-mentor

[issue12808] Coverage of codecs.py

2011-08-21 Thread Nick Coghlan
Nick Coghlan added the comment: Tennessee, there were a few issues in the original patch - see the attached update (mostly the use of assert statements instead of methods and the overbroad scope of the context manager when checking for an expected exception). However, in getting ready to comm

[issue1215] documentation doesn't say that you can't handle C segfaults from python

2011-08-21 Thread Martin Pool
Martin Pool added the comment: This patch tries to improve the documentation a bit more to address the issue that confused tebeka and to advertise faulthandler. Could someone review or apply it? -- keywords: +patch Added file: http://bugs.python.org/file22989/20110822-1525-signal-doc

[issue12810] Remove check for negative unsigned value in socketmodule.c

2011-08-21 Thread Joel
New submission from Joel : fixes the following warning: cpython/Modules/socketmodule.c:1748:74: warning: comparison of unsigned expression < 0 is always false [-Wtautological-compare] if (cmsgh == NULL || msg->msg_control == NULL || msg->msg_controllen < 0) -- files: bad_unsigned_c

[issue12768] docstrings for the threading module

2011-08-21 Thread Graeme Cross
Graeme Cross added the comment: The patch applies to tip. -- ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: h

[issue1215] documentation doesn't say that you can't handle C segfaults from python

2011-08-21 Thread Martin Pool
Changes by Martin Pool : -- title: Python hang when catching a segfault -> documentation doesn't say that you can't handle C segfaults from python ___ Python tracker ___

[issue12768] docstrings for the threading module

2011-08-21 Thread Eli Bendersky
Eli Bendersky added the comment: Graeme - could you specify which version of Python this patch applies to? -- ___ Python tracker ___

[issue12768] docstrings for the threading module

2011-08-21 Thread Eli Bendersky
Changes by Eli Bendersky : Removed file: http://bugs.python.org/file22987/unnamed ___ Python tracker ___ ___ Python-bugs-list mailing list Uns

[issue12768] docstrings for the threading module

2011-08-21 Thread Eli Bendersky
Eli Bendersky added the comment: On Mon, Aug 22, 2011 at 07:39, Graeme Cross wrote: > > Graeme Cross added the comment: > > Threading module docstrings added for all classes and public methods; > mainly used a summarised version of information from the documentation. > Thanks for the patch,

[issue1215] Python hang when catching a segfault

2011-08-21 Thread Martin Pool
Martin Pool added the comment: The documentation for this can now point to the faulthandler module (in Python 3). -- nosy: +poolie ___ Python tracker ___ ___

[issue12767] document threading.Condition.notify

2011-08-21 Thread Graeme Cross
Graeme Cross added the comment: I have added documentation for the 'n' parameter of threading.Condition.notify as part of the overhaul of the threading module's docstrings. Reference: #12768 -- nosy: +gjcross ___ Python tracker

[issue12768] docstrings for the threading module

2011-08-21 Thread Graeme Cross
Graeme Cross added the comment: Threading module docstrings added for all classes and public methods; mainly used a summarised version of information from the documentation. -- keywords: +patch nosy: +gjcross Added file: http://bugs.python.org/file22986/threading_docstrings.patch

[issue6484] No unit test for mailcap module

2011-08-21 Thread Anthony Briggs
Anthony Briggs added the comment: Added ncoghlan to the nosy list - we're reviewing/fixing unit test coverage as part of the sprints at PyconAU. Thanks Gnofi! -- ___ Python tracker

[issue6484] No unit test for mailcap module

2011-08-21 Thread Anthony Briggs
Changes by Anthony Briggs : -- nosy: +anthonyb, ncoghlan versions: +Python 3.3 -Python 3.2 ___ Python tracker ___ ___ Python-bugs-list

[issue11159] Sax parser crashes if given unicode file name

2011-08-21 Thread John Chandler
John Chandler added the comment: Confirmed about not being an issue in Python 3. Just checked with Python 3.3.0a0 and the example works fine - no exception raised. -- nosy: +John.Chandler ___ Python tracker _

[issue10951] gcc 4.6 warnings

2011-08-21 Thread Martin Pool
Martin Pool added the comment: This fixes every compiler warning so that Python build with -Werror on Ubuntu Oneiric alpha (gcc 4.6.1-7ubuntu1). * PyMem_Resize is a macro that mutates its first argument; the return value shouldn't be used. * Some variables in sre are (apparently harmlessl

[issue1298813] sysmodule.c: realpath() is unsafe

2011-08-21 Thread Mihai Ibanescu
Mihai Ibanescu added the comment: It's a real shame the original patch was not applied before py3k was branched, the code is now different. Antoine, my autoconf knowledge is limited, I don't know how you'd test for realpath accepting a NULL argument (and doing the right thing) at compile time

[issue12809] Missing new setsockopts in Linux (eg: IP_TRANSPARENT)

2011-08-21 Thread Michael Farrell
New submission from Michael Farrell : Recently, iptables has added support for transparent proxies using a new TPROXY target on Linux2. This requires a new option in setsockopts, IP_TRANSPARENT. There's some background on the feature here: http://www.mjmwired.net/kernel/Documentation/network

[issue12808] Coverage of codecs.py

2011-08-21 Thread Tennessee Leeuwenburg
Tennessee Leeuwenburg added the comment: Also some pep8 compliance outside of the scope of the added lines of code. -- ___ Python tracker ___ ___

[issue12808] Coverage of codecs.py

2011-08-21 Thread Tennessee Leeuwenburg
New submission from Tennessee Leeuwenburg : Increases the coverage of codecs.py by about 3 lines... -- files: mywork.patch keywords: patch messages: 142661 nosy: ncoghlan, tleeuwenburg priority: normal severity: normal status: open title: Coverage of codecs.py versions: Python 3.4 Added

[issue12807] Optimizations for {bytearray,bytes,unicode}.strip()

2011-08-21 Thread John O'Connor
New submission from John O'Connor : bytearray() is using a less efficient implementation of split() than its similar friends bytes and unicode. I added a couple extra checks to return early in {bytes,unicode} split(). - if length is 0 - if left strip removed all bytes Looking at just how sim

[issue12715] Add symlink support to shutil functions

2011-08-21 Thread Марк Коренберг
Changes by Марк Коренберг : -- nosy: +mmarkk ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-08-21 Thread Ned Batchelder
Ned Batchelder added the comment: The tip of the coverage.py repo (https://bitbucket.org/ned/coveragepy) has a new implementation of the encodings hack which seems to work well. Of course, an option to run a module before anything else in the interpreter would make the whole thing much simple

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2011-08-21 Thread Nick Coghlan
Nick Coghlan added the comment: As Georg noted, only individual expressions get parentheses based continuations automatically. For statement level use of comma separation, it's decided on a case-by-cases basis as to whether we think it is a legitimate usage based on our style guidelines. Tha

[issue11561] "coverage" of Python regrtest cannot see initial import of libs

2011-08-21 Thread Nick Coghlan
Nick Coghlan added the comment: Added Ned to the nosy list. For Python core, we should also keep in mind that we do have the option of adding a -X coverage option to avoid the need for the encodings module hack. -- nosy: +nedbat ___ Python tracker

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset c64216addd7f by Nick Coghlan in branch 'default': Add support for the send/recvmsg API to the socket module. Patch by David Watson and Heiko Wundram. (Closes #6560) http://hg.python.org/cpython/rev/c64216addd7f -- nosy: +python-dev resolut

[issue9893] Usefulness of the Misc/Vim/ files?

2011-08-21 Thread Graeme Cross
Graeme Cross added the comment: Here is a first pass at the README.vim file. Suggestions welcome from VIM power-users! -- nosy: +gjcross Added file: http://bugs.python.org/file22981/README.vim ___ Python tracker _

[issue10951] gcc 4.6 warnings

2011-08-21 Thread Martin Pool
Martin Pool added the comment: this fixes the pickle warnings, and cleans up some (I'm pretty sure) dead code in there. the pickle tests all pass. -- keywords: +patch nosy: +poolie Added file: http://bugs.python.org/file22980/20110822-1150-python-warnings.diff ___

[issue12776] argparse: type conversion function should be called only once

2011-08-21 Thread Arnaud Fontaine
Changes by Arnaud Fontaine : Added file: http://bugs.python.org/file22979/py3k-argparse-call-type-function-once.patch ___ Python tracker ___

[issue12776] argparse: type conversion function should be called only once

2011-08-21 Thread Arnaud Fontaine
Changes by Arnaud Fontaine : Added file: http://bugs.python.org/file22978/py2.7-argparse-call-type-function-once.patch ___ Python tracker ___ ___

[issue12776] argparse: type conversion function should be called only once

2011-08-21 Thread Arnaud Fontaine
Changes by Arnaud Fontaine : Removed file: http://bugs.python.org/file22928/py3k-argparse-call-type-function-once.patch ___ Python tracker ___ __

[issue12776] argparse: type conversion function should be called only once

2011-08-21 Thread Arnaud Fontaine
Changes by Arnaud Fontaine : Removed file: http://bugs.python.org/file22927/py2.7-argparse-call-type-function-once.patch ___ Python tracker ___ _

[issue12776] argparse: type conversion function should be called only once

2011-08-21 Thread Arnaud Fontaine
Arnaud Fontaine added the comment: Thanks for the review. Sorry to send that here instead of the review page, but I get an error when replying: "Invalid XSRF token.". > This looks good, especially if all existing tests still pass as you report, > but > I wonder about one thing: you have remov

[issue12805] Optimizations for bytes.join() et. al

2011-08-21 Thread John O'Connor
Changes by John O'Connor : -- title: Optimzations for bytes.join() et. al -> Optimizations for bytes.join() et. al ___ Python tracker ___ ___

[issue12806] argparse: Hybrid help text formatter

2011-08-21 Thread Graylin Kim
Graylin Kim added the comment: I just noticed that the example output above repeats with a different indent. The attached formatter isn't broken, I just messed up the editing on my post. The repeated text isn't part of the output (and shouldn't be there). While I'm certainly at fault here, a

[issue12806] argparse: Hybrid help text formatter

2011-08-21 Thread Graylin Kim
New submission from Graylin Kim : When using argparse I frequently run into situations where my helper text is a mix of prose and bullets or options. I need the RawTextFormatter for the bullets, and I need the default formatter for the prose (so the line wraps intelligently). The current Help

[issue12805] Optimzations for bytes.join() et. al

2011-08-21 Thread John O'Connor
New submission from John O'Connor : I noticed there are a few more common cases that can be sped up in bytes.join(). When: - The sequence length and separator length are both 0 - The separator length is 0 or 1 - The separator string contains only 1 distinct byte These could also be applied t

[issue12788] test_email fails with -R

2011-08-21 Thread R. David Murray
Changes by R. David Murray : -- assignee: -> r.david.murray ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: ht

[issue6560] socket sendmsg(), recvmsg() methods

2011-08-21 Thread Brian May
Changes by Brian May : -- nosy: +ncoghlan ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Nadeem Vawda
Nadeem Vawda added the comment: The sdist failure is now fixed on the 3.2 XP builders. test_record_extensions still needs attention, though. I also tried backporting Jeremy's fix to 2.7, but that doesn't seem to have worked; the sdist tests is still failing there. Someone who actually knows wha

[issue11657] multiprocessing_{send,recv}fd fail with fds > 256

2011-08-21 Thread Charles-François Natali
Charles-François Natali added the comment: > Charles; you have +commit, it seems. Yeah, I could of course do this myself, but since Petri already submitted a patch and seemed to be willing to update it with a test, I thought he might be interested in this (I've also seen he's participating to c

[issue12783] test_posix failure on FreeBSD 6.4: test_get_and_set_scheduler_and_param

2011-08-21 Thread Charles-François Natali
Charles-François Natali added the comment: The test now passes on FreeBSD buildbots. Closing. -- resolution: -> fixed stage: patch review -> committed/rejected status: open -> closed ___ Python tracker __

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset d40856e424fd by Nadeem Vawda in branch '2.7': Issue #12678: Fix distutils sdist test on Windows. http://hg.python.org/cpython/rev/d40856e424fd -- ___ Python tracker _

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset c8e73a89150e by Nadeem Vawda in branch '3.2': Issue #12678: Fix distutils sdist test on Windows. http://hg.python.org/cpython/rev/c8e73a89150e -- ___ Python tracker _

[issue11657] multiprocessing_{send,recv}fd fail with fds > 256

2011-08-21 Thread Jesse Noller
Jesse Noller added the comment: Charles; you have +commit, it seems. I would welcome the patch and test (just as long as the aforementioned reliance on /etc/fstab was removed). -- ___ Python tracker _

[issue11657] multiprocessing_{send,recv}fd fail with fds > 256

2011-08-21 Thread Jesse Noller
Jesse Noller added the comment: Yes, Charles - the test is not only welcome, but needed - it just can't rely on reading /etc/fstab ;) -- ___ Python tracker ___

[issue12785] list_distinfo_file is wrong

2011-08-21 Thread Nadeem Vawda
Nadeem Vawda added the comment: With the patch applied, I still get failures in test_old_record_extensions and test_record_basic, so it doesn't seem to work. -- nosy: +nadeem.vawda ___ Python tracker _

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Nadeem Vawda
Nadeem Vawda added the comment: > Looks like the patch is not enough: > http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.2/builds/477/steps/test/logs/stdio/text That's a 3.2 builder. You only committed Jeremy's fix to default. I've tested the fix on 3.2 on my own XP system, and it

[issue12803] SSLContext.load_cert_chain() should accept a password argument

2011-08-21 Thread Adam Simpkins
Adam Simpkins added the comment: Here's a new patch that accepts any callable. The old patch only accepted actual function objects. -- Added file: http://bugs.python.org/file22975/ssl-password.2.patch ___ Python tracker

[issue12721] Chaotic use of helper functions in test_shutil for reading and writing files

2011-08-21 Thread Hynek Schlawack
Hynek Schlawack added the comment: While writing my tests I realized, it would be really useful to make write_file() return the path it wrote to. I need the concatenated filenames most of the time, so I'm getting blocks of: fn = os.path.join(x,y) write_file(fn, 'contents') I'd prefer: fn = w

[issue12792] Document the "type" field of the tracker in the devguide

2011-08-21 Thread Terry J. Reedy
Terry J. Reedy added the comment: 'Behaviors' is quite legal. However, "behavior Wrong or unexpected behaviors/results/exceptions. ..." could well be "behavior Wrong or unexpected behavior, result, or exception. ..." -- ___ Python tracker

[issue12803] SSLContext.load_cert_chain() should accept a password argument

2011-08-21 Thread Adam Simpkins
Adam Simpkins added the comment: > It seems a bit strange to me to accept string types or callable in the > same argument. If it just supported strings, people could still write > password=somefunction(), right? The function is only called if the private key is encrypted and a password is ne

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: Roumen: I thought too about checking the zipfile on Windows, but with Jeremy’s patch the test force tar.gz generation, so it should amount to the same with less code. -- ___ Python tracker

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-21 Thread Martin v . Löwis
Martin v. Löwis added the comment: > So what about doing the same for FreeBSD, SunOS, and Windows? I agree that's definitely out of scope of this issue. > If we're changing "linux2" / "linux3" to just "linux", we should be > consistent and do it for everybody. I propose sys.platform under 3.3

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Roumen Petrov
Roumen Petrov added the comment: diff --git a/Lib/distutils/tests/test_sdist.py b/Lib/distutils/tests/test_sdist.py index 440af98..520289c 100644 --- a/Lib/distutils/tests/test_sdist.py +++ b/Lib/distutils/tests/test_sdist.py @@ -381,6 +381,15 @@ class SDistTestCase(PyPIRCCommandTestCase):

[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: test_argparse has a proper test infrastructure so that people don’t have to write the same boilerplate and assertion code over and over again. If you want, you can probably learn by copy-pasting things. What you want to test is basically that shortened forms wo

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: I have to log off for today; another committer can use the attached patch so that we get more info. -- Added file: http://bugs.python.org/file22974/tmp-debug.diff ___ Python tracker

[issue12782] Multiple context expressions do not support parentheses for continuation across lines

2011-08-21 Thread R. David Murray
R. David Murray added the comment: Following on to Georg's comment about expressions, as a workaround, note that: with ( open('abc')) as foo: works. -- nosy: +r.david.murray ___ Python tracker ___

[issue12713] argparse: allow abbreviation of sub commands by users

2011-08-21 Thread Christian Ziemski
Christian Ziemski added the comment: Attached a patch against Python 3.3 All the existing tests are still running successfully. But I wasn't able to add additional tests for the new functionality. Writing proper tests is a bit over my head for now - still learning. -- Added file: htt

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: Looks like the patch is not enough: http://www.python.org/dev/buildbot/all/builders/x86%20XP-5%203.2/builds/477/steps/test/logs/stdio/text Please see #12785 for a patch to packaging.database that should fix test_packaging failures and needs testing on Windows. -

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-21 Thread Arfrever Frehtes Taifersar Arahesis
Arfrever Frehtes Taifersar Arahesis added the comment: In case of plat-* directories, please see issue #12619, which proposes some changes. -- ___ Python tracker ___ __

[issue11657] multiprocessing_{send,recv}fd fail with fds > 256

2011-08-21 Thread Charles-François Natali
Charles-François Natali added the comment: > I looked at multiprocessing code, but didn't understand how to trigger a > call to these functions. Makes it hard to come up with a unit test... Here's a sample test: """ import _multiprocessing import os import socket for i in range(4, 256): o

[issue11651] Improve test targets in Makefile

2011-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 6c4fa9559b7e by Nadeem Vawda in branch 'default': Update README section on testing following issue #11651. http://hg.python.org/cpython/rev/6c4fa9559b7e -- ___ Python tracker

[issue12804] make test should not enable the urlfetch resource

2011-08-21 Thread Nadeem Vawda
Changes by Nadeem Vawda : -- resolution: -> fixed stage: -> committed/rejected status: open -> closed ___ Python tracker ___ ___ Pyt

[issue12804] make test should not enable the urlfetch resource

2011-08-21 Thread Roundup Robot
Roundup Robot added the comment: New changeset 228fd2bd83a5 by Nadeem Vawda in branch 'default': Issue #12804: Prevent "make test" from using network resources. http://hg.python.org/cpython/rev/228fd2bd83a5 -- nosy: +python-dev ___ Python tracker

[issue12804] make test should not enable the urlfetch resource

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: > Before the run_tests.py patch, the urlfetch resource was not enabled > by default. I’m referring to the addition of run_tests.py, not this patch. -- ___ Python tracker ___

[issue12804] make test should not enable the urlfetch resource

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: Yes, the machine did not have Internet access. Before the run_tests.py patch, the urlfetch resource was not enabled by default. I don’t want to disconnect to test the patch, but it looks good: /home/wok/python/3.3/python -W default -bb -E -m test -r -w -j 0 -u

[issue12804] make test should not enable the urlfetch resource

2011-08-21 Thread Nadeem Vawda
Nadeem Vawda added the comment: Are the failures because the machine you're running the test on doesn't have internet access? Or are there problems with some of the tests? The attached patch should solve the problem. -- keywords: +patch Added file: http://bugs.python.org/file22972/i128

[issue12804] make test should not enable the urlfetch resource

2011-08-21 Thread Éric Araujo
New submission from Éric Araujo : When I run make test on 3.3 now, I get failures because the tests try to make HTTP requests. -- messages: 142621 nosy: eric.araujo, nadeem.vawda priority: normal severity: normal status: open title: make test should not enable the urlfetch resource vers

[issue12776] argparse: type conversion function should be called only once

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the patch. I commented on the code review site, you should have received an email. -- nosy: +eric.araujo versions: +Python 3.3 ___ Python tracker ___

[issue12801] C realpath not used by os.path.realpath

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: + Return a string representing the canonicalized pathname of *path*. This sounds a bit strange to me; “Return a string representing the canonical version of *path*”. Would it be a good idea to use the full docstring of posixpath.realpath to os.realpath and th

[issue12797] io.FileIO and io.open should support openat

2011-08-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue1298813] sysmodule.c: realpath() is unsafe

2011-08-21 Thread Éric Araujo
Changes by Éric Araujo : -- versions: -Python 2.6, Python 3.1 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe:

[issue11362] image/webp missing from mimetypes.py

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: On a related note, the Google-originated video codec WebM is used out there and supported by various software. -- nosy: +eric.araujo ___ Python tracker _

[issue12798] Update mimetypes documentation

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: > Some changes I would like to do +1 on those. -- nosy: +eric.araujo ___ Python tracker ___ ___ Python

[issue12793] allow filters in os.walk

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: Thanks for the report. 2.7 is a stable version, so this would have to go in 3.3. Even where, breaking the function signature wouldn’t be possible, so we would have to add arguments without removing any. Have you looked at shutil.rmtree’s ignore argument and th

[issue12790] doctest.testmod does not run tests in functools.partial functions

2011-08-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.pyth

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: Larry: the scope of this bug was narrowed to the linux breakage only; see #12795 for other platforms. -- ___ Python tracker ___ _

[issue12326] Linux 3: code should avoid using sys.platform == 'linux2'

2011-08-21 Thread Larry Hastings
Larry Hastings added the comment: So what about doing the same for FreeBSD, SunOS, and Windows? The conversation about this point sort of trailed off. But, dammit, a foolish consistency is the hobgoblin of my small mind. If we're changing "linux2" / "linux3" to just "linux", we should be co

[issue12781] Mention SO_REUSEADDR near socket doc examples

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: +1 to Sandro’s patch. Documenting all SO_* constants should be another bug; right now, there is only an index entry for “SO_*”, I suppose for the benefit of C programmers wanting to know where the constants are defined. I think the reason for not documenting a

[issue12780] Clean up tests for pyc/pyo in __file__

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: Barry, could you review the second part of the patch? (the first was committed) -- nosy: +barry versions: +Python 3.2 ___ Python tracker ___

[issue10504] Trivial mingw compile fixes

2011-08-21 Thread Éric Araujo
Changes by Éric Araujo : -- nosy: +eric.araujo versions: +Python 3.3 -Python 2.7 ___ Python tracker ___ ___ Python-bugs-list mailing l

[issue12803] SSLContext.load_cert_chain() should accept a password argument

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: > I've attached a patch that adds an extra password argument, which can be > either a string, bytes, bytearray, or a function to call to get the password. It seems a bit strange to me to accept string types or callable in the same argument. If it just supported

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-08-21 Thread Petri Lehtinen
Changes by Petri Lehtinen : -- nosy: +petri.lehtinen ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-08-21 Thread Hynek Schlawack
Changes by Hynek Schlawack : -- nosy: +hynek ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.

[issue9993] shutil.move fails on symlink source

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: Can you update the documentation? -- nosy: +eric.araujo versions: +Python 3.3 -Python 3.1 ___ Python tracker ___ __

[issue12678] test_packaging and test_distutils failures under Windows

2011-08-21 Thread Paul Moore
Changes by Paul Moore : -- nosy: +pmoore ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: http://mail.python.org

[issue4489] shutil.rmtree is vulnerable to a symlink attack

2011-08-21 Thread Éric Araujo
Éric Araujo added the comment: I made two comments on rietveld but the email was rejected. -- ___ Python tracker ___ ___ Python-bugs-l

  1   2   >