[issue1621] Do not assume signed integer overflow behavior

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1621
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue1669349] make install fails if no previous Python installation

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue1669349
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3265] Python-2.5.2/Modules/_ctypes/malloc_closure.c:70: error: `MAP_ANONYMOUS' undeclared

2011-06-01 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

2.5 is done with and no response to question about more recent versions.

--
resolution:  - out of date
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3265
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9678] uuid._ifconfig_getnode can't work on NetBSD

2011-06-01 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

2.5 is closed and 2.6 and 3.1 are or soon will be security fix only.
I do not know if any developer works with NetBSD.

--
nosy: +terry.reedy
versions: +Python 3.2 -Python 2.5, Python 2.6, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9678
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9812] cPickle segfault with nested dicts in threaded env

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
resolution:  - out of date
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9812
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9699] invalid call of Windows API _popen() generating The input line is too long error message

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9699
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9972] PyGILState_XXX missing in Python builds without threads

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9972
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue8678] crashers in rgbimg

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
resolution:  - out of date
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue8678
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10376] ZipFile unzip is unbuffered

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions: +Python 3.2, Python 3.3 -Python 2.5, Python 2.6, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10376
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue2901] error: can't allocate region from mmap() when receiving big chunk of data

2011-06-01 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

Never verified for current release. 2.5 closed.

--
resolution:  - out of date
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue2901
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue10878] asyncore does not react properly on close()

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5, Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue10878
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11374
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11357] Add support for PEP 381 -- Mirror Authenticity

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5, Python 2.6, Python 2.7, Python 3.1, Python 3.2, Python 
3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11357
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11409] pysetup --search should return non-zero when a dist is not installed and print a message stating the fact.

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11409
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11449] tarfile tries to file_.tell() even when creating a new archive

2011-06-01 Thread Terry J. Reedy

Terry J. Reedy tjre...@udel.edu added the comment:

2.5 is closed; 2.6 security fix only, 3.1 soon will be

--
nosy: +terry.reedy
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11449
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11439] subversion keyword breakage

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11439
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11419] Python-ast.[ch] out-of-date w.r.t. sources in fresh 2.5 checkout

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11419
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11671] Security hole in wsgiref.headers.Headers

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11671
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11728] mbox parser incorrect behaviour

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
stage:  - test needed
type:  - behavior
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11728
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11767] Maildir iterator leaks file descriptors by default

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5, Python 2.6

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11767
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11792] asyncore module print to stdout

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11792
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9667] NetBSD curses KEY_* constants

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5, Python 2.6, Python 3.1

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9667
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2011-06-01 Thread Terry J. Reedy

Changes by Terry J. Reedy tjre...@udel.edu:


--
versions:  -Python 2.5

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11934
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x

2011-06-01 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

I ran the test more than 1000 times on Linux (using -m test -F test_io, and 
manually patched test_io to only run this test, see also #12231 !!!) without 
being able to reproduce the failure. So it may be specific to Mac OS X Tiger.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12230
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x

2011-06-01 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 Could this be related to http://bugs.python.org/issue6559#msg123958?
 Or Issue10826?

These failures were specific to Solaris/OpenIndiana: they were door files. 
Extract of fd_status.py:

1.34 +# Ignore Solaris door files
1.35 +if st.st_mode  0xF000 != 0xd000:
1.36 +fds.append(fd)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12230
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Stefan Krah

Stefan Krah stefan-use...@bytereef.org added the comment:

 Distutils doesn't validate PyPI server certificate, so this change
 doesn't prevent from MITM attacks, but at least it makes package
 submissions over wireless channels and public networks safer.

Is that so? It's been a while, but I think e.g. ettercap is a highly
automated tool for MITM attacks that isn't very hard to use.

--
nosy: +skrah

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x

2011-06-01 Thread Ross Lagerwall

Ross Lagerwall rosslagerw...@gmail.com added the comment:

 These failures were specific to Solaris/OpenIndiana: they were door files

Yeah, I saw that but thought maybe the reason was similar, some library 
function in the child process was opening a file and not closing it properly.

 using -m test -F test_io, and manually patched test_io

Isn't this test_subprocess?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12230
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12225] current tip doesn't build without mercurial installed

2011-06-01 Thread Ralf Schmitt

Ralf Schmitt sch...@gmail.com added the comment:

Roumen Petrov rep...@bugs.python.org writes:

 Roumen Petrov bugtr...@roumenpetrov.info added the comment:

 Check for python executable is not complete . What about if system has
 only version 3+ installed ?

The shebang in Parser/asdl_c.py reads '#! /usr/bin/env python'.
That is what the makefile is calling. So unless you want to change the
Makefile too and start calling '@PYTHON@ Parser/asdl_c.py', I think the
check is rather complete.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12225
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x

2011-06-01 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

The leaking file descriptor is a the read end of a pipe created in the test 
(the test creates 5 pipes, 10 file descriptors). On creation (in the parent 
process), this file descriptor has the mode : st_mode=4528. In the child 
process, the file descriptor has the mode : st_mode=420, which is an invalid 
mode. The child cannot read or write into this file: write raises an OSError(9, 
'Bad file descriptor') and read raises an OSError(45, 'Operation not 
supported'). It looks like a kernel (Darwin) bug, fixed in Mac OS X  10.4.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12230
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Barry A. Warsaw

Barry A. Warsaw ba...@python.org added the comment:

Given that 2.6.7 is rc2 with a final release scheduled in 2 days, I don't want 
to apply this to 2.6 right now.  Can you guarantee this won't regress for 
anybody?  If so, then I'm also +0 for 2.6 after the 2.6.7 release.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12231] regrtest: add -k and -K options to filter tests by function/file names

2011-06-01 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

IMHO it would be better to tweak regrtest so that it understand 
test_file.TestClass.test_method, possibly supporting wildcards.
E.g.:
  - ./python -m test test_subprocess.POSIXProcessTestCase
  - ./python -m test test_subprocess.POSIXProcessTestCase.test_pass_fds
  - ./python -m test '*codecencoding*'
  - ./python -m test 'test_subprocess.C*'

The -x/--exclude option could be extended to support this notation too and make 
possible to exclude specific tests classes/methods.
Wildcards are less flexible than regex, but I think they are good enough for 
our use case and simpler to use.

--
nosy: +ezio.melotti
stage:  - needs patch
type:  - feature request
versions:  -Python 2.7, Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12231
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12230] test_subprocess.test_pass_fds() failed on x86 Tiger 3.x

2011-06-01 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 22457ac2c2df by Victor Stinner in branch '3.2':
Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes, the file
http://hg.python.org/cpython/rev/22457ac2c2df

New changeset 566c42b0e750 by Victor Stinner in branch 'default':
(Merge 3.2) Close #12230: Mac OS X Tiger (10.4) has a kernel bug: sometimes,
http://hg.python.org/cpython/rev/566c42b0e750

--
nosy: +python-dev
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12230
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12196] add pipe2() to the os module

2011-06-01 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

 support_linux_version.diff: cool, it's even better than the previous patch.
 You can commit it, except if you are motived for a last change: display
 the write also version in the SkipTest message (as it is done actually).

I just added a very similar function for Mac OS X which is a decorator. 
Example: @support.requires_mac_ver(10, 5).

requires_linux_version() should also be a decorator.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12196
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



Re: [issue12225] current tip doesn't build without mercurial installed

2011-06-01 Thread Ned Deily
In article e1qrx9p-0004nn...@dinsdale.python.org,
 Roundup Robot rep...@bugs.python.org wrote:

 Roundup Robot devnull@devnull added the comment:
 
 New changeset 435eec7b41f0 by Ralf Schmitt in branch 'default':
 disable ASDLGEN if hg won't work, or if python is not installed.
 http://hg.python.org/cpython/rev/435eec7b41f0
 
 --
 nosy: +python-dev
 resolution: duplicate - fixed

Whoever pushed this - as the OP mentioned, you need to run autoconf to 
get configure updated and push that as well.

-- 
 Ned Deily,
 n...@acm.org

___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12234] unittest2 could enable regex debugging for more information

2011-06-01 Thread Domen Kožar

New submission from Domen Kožar ielect...@gmail.com:

When using self.assertRegexpMatches, it would be useful to see where did the 
matching stop. Maybe using re module debugging flag?

--
components: Library (Lib)
messages: 137432
nosy: iElectric
priority: normal
severity: normal
status: open
title: unittest2 could enable regex debugging for more information
type: feature request
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12234
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12231] regrtest: add -k and -K options to filter tests by function/file names

2011-06-01 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

+1 to what Ezio said, though I'd rather have this than not have the 
functionality at all :)

--
nosy: +r.david.murray

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12231
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11449] tarfile tries to file_.tell() even when creating a new archive

2011-06-01 Thread Dan Stromberg

Dan Stromberg strom...@gmail.com added the comment:

Yes, I just needed to use 'w|' instead of 'w'.

Thanks!

--
resolution:  - works for me
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11449
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

On Wed, Jun 1, 2011 at 10:30 AM, Stefan Krah rep...@bugs.python.org wrote:

 Distutils doesn't validate PyPI server certificate, so this change
 doesn't prevent from MITM attacks, but at least it makes package
 submissions over wireless channels and public networks safer.

 Is that so? It's been a while, but I think e.g. ettercap is a highly
 automated tool for MITM attacks that isn't very hard to use.

This patch won't help against properly baited ettercap, but will
prevent transit sniffing of weakly protected passwords.
--
anatoly t.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread anatoly techtonik

anatoly techtonik techto...@gmail.com added the comment:

On Wed, Jun 1, 2011 at 2:06 PM, Barry A. Warsaw rep...@bugs.python.org wrote:

 Barry A. Warsaw ba...@python.org added the comment:

 Given that 2.6.7 is rc2 with a final release scheduled in 2 days, I don't 
 want to apply this to 2.6 right now.  Can you guarantee this won't regress 
 for anybody?  If so, then I'm also +0 for 2.6 after the 2.6.7 release.

Adding catalog-sig to CC. I can guarantee this for Windows. I'll be
near Linux box tomorrow and will try upload to PyPI from there. It
still will be more authoritative if more than one person can test
upload to PyPI with this patch on different systems.
--
anatoly t.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Fred L. Drake, Jr.

Fred L. Drake, Jr. fdr...@acm.org added the comment:

On Wed, Jun 1, 2011 at 11:14 AM, anatoly techtonik techto...@gmail.com wrote:
 Adding catalog-sig to CC. I can guarantee this for Windows. I'll be
 near Linux box tomorrow and will try upload to PyPI from there. It
 still will be more authoritative if more than one person can test
 upload to PyPI with this patch on different systems.

The interesting case will be for a build that doesn't include SSL support.

  -Fred

--
nosy: +fdrake

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Tarek Ziadé

Tarek Ziadé ziade.ta...@gmail.com added the comment:

On Wed, Jun 1, 2011 at 5:17 PM, Fred Drake fdr...@acm.org wrote:
 On Wed, Jun 1, 2011 at 11:14 AM, anatoly techtonik techto...@gmail.com 
 wrote:
 Adding catalog-sig to CC. I can guarantee this for Windows. I'll be
 near Linux box tomorrow and will try upload to PyPI from there. It
 still will be more authoritative if more than one person can test
 upload to PyPI with this patch on different systems.

 The interesting case will be for a build that doesn't include SSL support.

Yeah.. We do have in packaging a way to test against a PyPI server
that gets launched on a real socket, so what we could do is:

1/ add a test that tries to upload and register via ssh
2/ make sure it fallbacks to http if _ssl is not found



  -Fred

 --
 Fred L. Drake, Jr.    fdrake at acm.org
 Give me the luxuries of life and I will willingly do without the 
 necessities.
    --Frank Lloyd Wright
 ___
 Catalog-SIG mailing list
 catalog-...@python.org
 http://mail.python.org/mailman/listinfo/catalog-sig


--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12235] subprocess.check_output throws wrong exception if non executable

2011-06-01 Thread Cal Leeming

New submission from Cal Leeming cal.leem...@simplicitymedialtd.co.uk:

If you attempt to call subprocess.check_output() on a file which is not 
executable, it gives a file not found exception, rather than file not 
executable. Took me about 3 hours to figure out why it kept saying the file 
didn't exist, when it clearly did :|


 ***@***# ls -la ***/src/webapp/tools/grab.sh
-rwxr-xr-x 1 *** *** 4398 Apr 19 10:55 ***/src/webapp/tools/grab.sh

 ***@***# ***/src/webapp/tools/grab.sh
bash: ***/src/webapp/tools/grab.sh: /bin/sh^M: bad interpreter: No such file or 
directory


Traceback (most recent call last):

  File ***/src/webapp/../webapp/idx/fourchan/tasks.py, line 77, in run
subprocess.check_output([ DOWNLOAD_BIN, ])

  File /usr/local/lib/python2.7/subprocess.py, line 530, in check_output
process = Popen(stdout=PIPE, *popenargs, **kwargs)

  File /usr/local/lib/python2.7/subprocess.py, line 672, in __init__
errread, errwrite)

  File /usr/local/lib/python2.7/subprocess.py, line 1201, in _execute_child
raise child_exception

OSError: [Errno 2] No such file or directory


Request:
None

--
messages: 137439
nosy: Cal.Leeming
priority: normal
severity: normal
status: open
title: subprocess.check_output throws wrong exception if non executable

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12235] subprocess.check_output throws wrong exception if non executable

2011-06-01 Thread Cal Leeming

Cal Leeming cal.leem...@simplicitymedialtd.co.uk added the comment:

Oh also, here is the version:


 simplicitymedialtd@sws01.internal [~/webapps/cdn06.prod/src/webapp/cmd]  
python
Python 2.7 Stackless 3.1b3 060516 (release27-maint, Aug 29 2010, 15:44:48)
[GCC 4.3.2] on linux2
Type help, copyright, credits or license for more information.

--
components: +None
type:  - behavior
versions: +Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12226] use secured channel for uploading packages to pypi

2011-06-01 Thread Jakub Wilk

Changes by Jakub Wilk jw...@jwilk.net:


--
nosy: +jwilk

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12226
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12235] subprocess.check_output throws wrong exception if non executable

2011-06-01 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

Python is not raising this error, your OS is.
It doesn't find the interpreter, and if you look carefully, it's clear why:

bash: ***/src/webapp/tools/grab.sh: /bin/sh^M: bad interpreter: No such file or 
directory

See the ^M after /bin/sh?
It's looks like a DOS line ending, and the spurious \r character is 
concatenated to the intepreter path, leading to this error.
You didn't copy this script through a Windows box, didn't you?
Just run dos2unix on your script, and it should solve your problem.

--
nosy: +charles-francois.natali

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12235] subprocess.check_output throws wrong exception if non executable

2011-06-01 Thread Cal Leeming

Cal Leeming cal.leem...@simplicitymedialtd.co.uk added the comment:

Yeah, I resolved the issue already. This bug report is focused primarily on the 
(somewhat misleading) exception message given back.  

I think it should at least include bad interpreter, otherwise it is a tad 
misleading.

Cal

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12235] subprocess loses stderr information when _execute_child fails

2011-06-01 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Subprocess is throwing the correct exception, what it isn't doing is preserving 
stderr.  The stderr output in question is not coming from the *subprocess* (the 
process hasn't been created yet).  It would be nice if that stderr output could 
be added to the exception message, but that is not normally the way os errors 
are handled in python.

--
nosy: +gregory.p.smith, r.david.murray
title: subprocess.check_output throws wrong exception if non executable - 
subprocess loses stderr information when _execute_child fails
versions: +Python 3.2, Python 3.3

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-01 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Jonas, I owe you an apology: when I abruptly asked “Could you make an effort to 
accept” etc., I had misread your message and thought you were asking to change 
the roles, but you were speaking of directives, so my comment was out of line.  
Sorry.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11975
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12235] subprocess loses stderr information when _execute_child fails

2011-06-01 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 I think it should at least include bad interpreter, otherwise it is a tad 
 misleading.

It just forwards the error raised by the exec system call:

$ cat foo.sh 
#! /bin/foo
$ strace ./foo.sh 
execve(./foo.sh, [./foo.sh], [/* 38 vars */]) = -1 ENOENT (No such file or 
directory)

 Subprocess is throwing the correct exception, what it isn't doing is 
 preserving stderr.

There's not stderr, it's just execve which is failing with errno set to ENOENT.
Now, if you wonder how bash manages to print this bad interpreter error 
message, it's simple: it first checks for common errno values (ENOEXEC, 
ENOMEM), and then it parses the shebang: if it finds a line starting with #!, 
it assumes that it's a bad interpreter, and prints the offending line.
That's it.

Suggesting to close as invalid.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-01 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

FWIW using the class directive also adds a 'class' before the name, and I -1 
about having int()/float()/etc. prepended by 'class' in the functions.rst page.
What happens if we leave .. function:: there and use .. class:: in another 
page where all the methods are actually documented?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11975
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-01 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Agreed.

I experimented with tuple and tuple.count and it turns out that it’s not easily 
solved: the count method is documented in the table describing all sequences 
methods, which should not be duplicated IMO; I tried adding a .. method:: 
tuple.append directive to create a link target, but that does not work in a 
table row.  Maybe the index directives can do what we want, but I do not 
understand them.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11975
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12200] bdist_wininst install_script not run on uninstall

2011-06-01 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

I cannot review the patch (I don’t know C), but I will trust you.  Could you 
add a test to prevent regressions?

--
versions:  -Python 3.4

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11416] netrc module does not handle multiple entries for a single host

2011-06-01 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Looks good, thanks.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11416
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12235] subprocess throws wrong exception if script can't be executed

2011-06-01 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Ah, I see.  Agreed with the closing, then.

Cal: one way to debug this kind of thing is to try the same command with 
shell=True.  Then the shell will generate its special error message.

Changing the title back to something that might be recognizable to others who 
run into this problem.

--
resolution:  - invalid
stage:  - committed/rejected
status: open - closed
title: subprocess loses stderr information when _execute_child fails - 
subprocess throws wrong exception if script can't be executed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12235] subprocess throws wrong exception if script can't be executed

2011-06-01 Thread Cal Leeming

Cal Leeming cal.leem...@simplicitymedialtd.co.uk added the comment:

Ah okay, shell=True is a good work around then :)

Thanks!

Cal

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12235
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12170] Bytes.index() and bytes.count() should accept byte ints

2011-06-01 Thread Éric Araujo

Changes by Éric Araujo mer...@netwok.org:


--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12170
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12191] Add shutil.chown to allow to use user and group name (and not only uid/gid)

2011-06-01 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

 I was just asking given the unusual situation 2.7 is (i.e. a very
 long support series)
Support means bug fixes.  Long-term means that the bugfix period (before going 
into security mode) is extended, not that it can get new features: that’s 
exclusively for 3.3.

 rewrap: I kinda find that almost every core dev has his opinion on this :)
Heh :)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12191
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11374] pkgutil.extend_path do not recognize py{c,o} file

2011-06-01 Thread Éric Araujo

Éric Araujo mer...@netwok.org added the comment:

Hi, thanks for the report and patch.  I think the code should not find 
byte-compiled files if sys.dont_write_bytecode is true, and it should not find 
pyo files when sys.flags.optimize has a certain value (I don’t remember if it’s 
1 or 2).  It also requires tests.

--
nosy: +eric.araujo

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11374
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12196] add pipe2() to the os module

2011-06-01 Thread Roundup Robot

Roundup Robot devnull@devnull added the comment:

New changeset 4124d1f75b93 by Charles-François Natali in branch 'default':
Issue #12196: Add a note on os.pipe2() in the Whats' new in Python 3.3
http://hg.python.org/cpython/rev/4124d1f75b93

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12196
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12236] Tkinter __version__ uses subversion substitution

2011-06-01 Thread Julian Taylor

New submission from Julian Taylor jtaylor.deb...@googlemail.com:

./Lib/lib-tk/Tkinter.py:33 has this svn keyword substitution:
 __version__ = $Revision$

Due to the change to hg this field is not substituted and makes __version__ 
quite pointless.
This affects the python 2.7.2rc1.

--
components: Tkinter
messages: 137455
nosy: jtaylor
priority: normal
severity: normal
status: open
title: Tkinter __version__ uses subversion substitution
type: behavior
versions: Python 2.7

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12236
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11934] build with --prefix=/dev/null and zlib enabled in Modules/Setup failed

2011-06-01 Thread R. David Murray

R. David Murray rdmur...@bitdance.com added the comment:

Well, IIUC the Setup lines indicate where to find the system version of the 
libraries (otherwise the included zlib is used).  So I'm not at all sure that 
there is a bug here.  If you change Setup, you need to change it correctly for 
your intended installation.

--
nosy: +r.david.murray
resolution:  - invalid
status: open - pending

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11934
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11453] asyncore.file_wrapper should implement __del__ and call close there to prevent resource leaks and behave like socket.socket does.

2011-06-01 Thread Aldona Majorek

Aldona Majorek amajo...@google.com added the comment:

Adding __exit__ will not make asyncore.file_wrapper close file descriptor when 
garbage collected.

Here is clone of socket.py solution for the same problem.

  def close(self):
if self.fd:
  os.close(self.fd)
  self.fd = None # or maybe self.fd = 0 will be better

  def __del__(self):
try:
  self.close()
except:
  # close() may fail if __init__ didn't complete
  pass

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11453
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue3014] file_dealloc() assumes errno is set when EOF is returned

2011-06-01 Thread Ralf Schmitt

Changes by Ralf Schmitt sch...@gmail.com:


--
nosy: +schmir

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue3014
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12084] os.stat() on windows doesn't consider relative symlink

2011-06-01 Thread Brian Curtin

Brian Curtin br...@python.org added the comment:

I have this working when you stat the symlink from the directory it was created 
or above...but oddly it does not work when you open a symlink below the 
directory it exists in.

DeviceIoControl isn't used for reparse tag handling anymore, and I'm using 
GetFinalPathNameByHandle similar to how it was used in previous versions of 
this code. There's still a case to handle and maybe some cleanup, but there's 
decent progress and hope that I can get it done very soon.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12084
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue5043] get_msvcr() returns None rather than []

2011-06-01 Thread Ralf Schmitt

Changes by Ralf Schmitt sch...@gmail.com:


--
nosy: +schmir

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5043
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-01 Thread Jonas H.

Jonas H. jo...@lophus.org added the comment:

 Jonas, I owe you an apology [...]

Thanks Éric, I got a bit worried about getting on your nerves...

Based on Ezio's idea: What happens if we have both a .. function:: foo and 
.. class:: foo -- where do :func:`foo` and :class:`foo` link to (internally 
and using intersphinx)?

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11975
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12236] Tkinter __version__ uses subversion substitution

2011-06-01 Thread Ned Deily

Changes by Ned Deily n...@acm.org:


--
nosy: +benjamin.peterson, georg.brandl
priority: normal - release blocker
versions: +Python 3.1, Python 3.2

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12236
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11975] Fix referencing of built-in types (list, int, ...)

2011-06-01 Thread Ezio Melotti

Ezio Melotti ezio.melo...@gmail.com added the comment:

I think the only way to find it out is to try it and see.
In the worst case, sphinx will give an error while building the doc, if we are 
lucky it will just pick one of the two (or even better the one defined with the 
function directive while using :func:`` and the other one while using 
:class:``).
You can also experiment with :noindex: but I'm not sure it will do anything 
useful here.

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11975
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12196] add pipe2() to the os module

2011-06-01 Thread Charles-François Natali

Charles-François Natali neolo...@free.fr added the comment:

 requires_linux_version() should also be a decorator.

Patch attached.

--
Added file: http://bugs.python.org/file22219/support_linux_version.diff

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12196
___diff -r 22f077f82e74 Lib/test/support.py
--- a/Lib/test/support.py   Wed Jun 01 20:44:40 2011 +0200
+++ b/Lib/test/support.py   Wed Jun 01 23:26:57 2011 +0200
@@ -37,8 +37,8 @@
 Error, TestFailed, ResourceDenied, import_module,
 verbose, use_resources, max_memuse, record_original_stdout,
 get_original_stdout, unload, unlink, rmtree, forget,
-is_resource_enabled, requires, linux_version, requires_mac_ver,
-find_unused_port, bind_port,
+is_resource_enabled, requires, requires_linux_version,
+requires_mac_ver, find_unused_port, bind_port,
 IPV6_ENABLED, is_jython, TESTFN, HOST, SAVEDCWD, temp_cwd,
 findfile, sortdict, check_syntax_error, open_urlresource,
 check_warnings, CleanImport, EnvironmentVarGuard, 
TransientResource,
@@ -292,13 +292,32 @@
 msg = Use of the `%s' resource not enabled % resource
 raise ResourceDenied(msg)
 
-def linux_version():
-try:
-# platform.release() is something like '2.6.33.7-desktop-2mnb'
-version_string = platform.release().split('-')[0]
-return tuple(map(int, version_string.split('.')))
-except ValueError:
-return 0, 0, 0
+def requires_linux_version(*min_version):
+Decorator raising SkipTest if the OS is Linux and the kernel version is
+less than min_version.
+
+For example, @requires_linux_version(2, 6, 35) raises SkipTest if the Linux
+kernel version is less than 2.6.35.
+
+def decorator(func):
+@functools.wraps(func)
+def wrapper(*args, **kw):
+if sys.platform.startswith('linux'):
+version_txt = platform.release().split('-', 1)[0]
+try:
+version = tuple(map(int, version_txt.split('.')))
+except ValueError:
+pass
+else:
+if version  min_version:
+min_version_txt = '.'.join(map(str, min_version))
+raise unittest.SkipTest(
+Linux kernel %s or higher required, not %s
+% (min_version_txt, version_txt))
+return func(*args, **kw)
+wrapper.min_version = min_version
+return wrapper
+return decorator
 
 def requires_mac_ver(*min_version):
 Decorator raising SkipTest if the OS is Mac OS X and the OS X
diff -r 22f077f82e74 Lib/test/test_posix.py
--- a/Lib/test/test_posix.pyWed Jun 01 20:44:40 2011 +0200
+++ b/Lib/test/test_posix.pyWed Jun 01 23:26:57 2011 +0200
@@ -309,11 +309,8 @@
 fp2.close()
 
 @unittest.skipUnless(hasattr(os, 'O_CLOEXEC'), needs os.O_CLOEXEC)
+@support.requires_linux_version(2, 6, 23)
 def test_oscloexec(self):
-version = support.linux_version()
-if sys.platform == 'linux2' and version  (2, 6, 23):
-self.skipTest(Linux kernel 2.6.23 or higher required, 
-  not %s.%s.%s % version)
 fd = os.open(support.TESTFN, os.O_RDONLY|os.O_CLOEXEC)
 self.addCleanup(os.close, fd)
 self.assertTrue(fcntl.fcntl(fd, fcntl.F_GETFD)  fcntl.FD_CLOEXEC)
@@ -479,11 +476,8 @@
 os.close(writer)
 
 @unittest.skipUnless(hasattr(os, 'pipe2'), test needs os.pipe2())
+@support.requires_linux_version(2, 6, 27)
 def test_pipe2(self):
-version = support.linux_version()
-if sys.platform == 'linux2' and version  (2, 6, 27):
-self.skipTest(Linux kernel 2.6.27 or higher required, 
-  not %s.%s.%s % version)
 self.assertRaises(TypeError, os.pipe2, 'DEADBEEF')
 self.assertRaises(TypeError, os.pipe2, 0, 0)
 
diff -r 22f077f82e74 Lib/test/test_socket.py
--- a/Lib/test/test_socket.py   Wed Jun 01 20:44:40 2011 +0200
+++ b/Lib/test/test_socket.py   Wed Jun 01 23:26:57 2011 +0200
@@ -1023,11 +1023,8 @@
 pass
 
 if hasattr(socket, SOCK_NONBLOCK):
+@support.requires_linux_version(2, 6, 28)
 def testInitNonBlocking(self):
-v = support.linux_version()
-if v  (2, 6, 28):
-self.skipTest(Linux kernel 2.6.28 or higher required, not %s
-  % ..join(map(str, v)))
 # reinit server socket
 self.serv.close()
 self.serv = socket.socket(socket.AF_INET, socket.SOCK_STREAM |
@@ -2001,11 +1998,8 @@
  SOCK_CLOEXEC not defined)
 @unittest.skipUnless(fcntl, module fcntl not available)
 class CloexecConstantTest(unittest.TestCase):
+@support.requires_linux_version(2, 6, 28)
 def 

[issue12196] add pipe2() to the os module

2011-06-01 Thread STINNER Victor

STINNER Victor victor.stin...@haypocalc.com added the comment:

Your last support_linux_version.diff patch looks good. If you are motivated, 
this new function can also be added to test.support of Python 3.2 
(test_socket.py has the original linux_version() function).

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12196
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12200] bdist_wininst install_script not run on uninstall

2011-06-01 Thread Mark Hammond

Mark Hammond skippy.hamm...@gmail.com added the comment:

Adding tests would be fairly painful - there is no test infrastructure in place 
for generating and running installers at all, and worse, the changes are likely 
to not work correctly when run from a Python build tree when the built DLL is 
not installed into System32 (the patch basically assumes an installed dir 
structure rather than a built one.)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue11798] Test cases not garbage collected after run

2011-06-01 Thread Fabio Zadrozny

Fabio Zadrozny fab...@users.sourceforge.net added the comment:

Sure, will try to get a patch for next week...

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue11798
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12181] SIGBUS error on OpenBSD (sparc64)

2011-06-01 Thread Federico Schwindt

Federico Schwindt federico.schwi...@gmail.com added the comment:

Adding to this, the kqueue code (and test) heavily depends on the size of these 
members. kqueue_event_richcompare() uses a Py_intptr_t to store the result of 
substracting T_UINTs which is obviusly wrong on platforms where Py_intptr and 
T_UINTs are not the same (which is neither related to this bug nor OpenBSD 
specific), the test uses sys.maxint, etc.

It'd be nice if someone cleans the code to fix all these problems and adds some 
more tests to cover all the members in tp_richcompare.

--
nosy: +Federico.Schwindt

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12181
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12236] Tkinter __version__ uses subversion substitution

2011-06-01 Thread Benjamin Peterson

Benjamin Peterson benja...@python.org added the comment:

Yes, it's harmless, though. I've removed it for 3.3.

--
priority: release blocker - normal
resolution:  - out of date
status: open - closed

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12236
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue12200] bdist_wininst install_script not run on uninstall

2011-06-01 Thread Mark Hammond

Mark Hammond skippy.hamm...@gmail.com added the comment:

(OTOH though, I could tweak the patch to work in a built tree - it would mean 
appending PCBuild to the dir and retrying the DLL load if the other options 
fail...)

--

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue12200
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue9858] Python and C implementations of io are out of sync

2011-06-01 Thread John O'Connor

Changes by John O'Connor tehj...@gmail.com:


--
nosy: +jcon

___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue9858
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com