[issue15800] Closing of sys.std* files in gzip test.

2012-08-29 Thread Jesús Cea Avión

Jesús Cea Avión added the comment:

Test?

--

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



[issue15800] Closing of sys.std* files in gzip test.

2012-08-29 Thread Serhiy Storchaka

Serhiy Storchaka added the comment:

I can not imagine how it can be tested. Correction does not affect the current 
behavior.

--

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



[issue15800] Closing of sys.std* files in gzip test.

2012-08-29 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 0b5ba5f610a9 by Antoine Pitrou in branch '3.2':
Issue #15800: fix the closing of input / output files when gzip is used as a 
script.
http://hg.python.org/cpython/rev/0b5ba5f610a9

New changeset be505d22dde8 by Antoine Pitrou in branch 'default':
Issue #15800: fix the closing of input / output files when gzip is used as a 
script.
http://hg.python.org/cpython/rev/be505d22dde8

--
nosy: +python-dev

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



[issue15800] Closing of sys.std* files in gzip test.

2012-08-29 Thread Antoine Pitrou

Antoine Pitrou added the comment:

A simple fix indeed, thank you.

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

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



[issue15800] Closing of sys.std* files in gzip test.

2012-08-28 Thread Serhiy Storchaka

New submission from Serhiy Storchaka:

When porting gzip module from Python 2 to Python 3, binary files 
sys.std(in|out) was replaced by sys.std(in|out).buffer in gzip module internal 
testing code (when gzip used as executable). But in one place the replacement 
was skipped. As the result the condition now always true and standard files are 
closed after use.

Here is a patch that fixes this error.

--
components: Library (Lib)
files: gzip_main_close.patch
keywords: patch
messages: 169296
nosy: pitrou, storchaka
priority: low
severity: normal
status: open
title: Closing of sys.std* files in gzip test.
type: resource usage
versions: Python 3.2, Python 3.3
Added file: http://bugs.python.org/file27035/gzip_main_close.patch

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



[issue15800] Closing of sys.std* files in gzip test.

2012-08-28 Thread Jesús Cea Avión

Changes by Jesús Cea Avión j...@jcea.es:


--
nosy: +jcea

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