[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 
<http://bugs.python.org/issue6484>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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 
<http://bugs.python.org/issue6484>
___
___
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[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.TextIOWrapper name='Lib/sunau.py' mode='r' encoding='utf-8'>
  check(fullname)
/home/anthony/devinabox/cpython/Lib/tabnanny.py:93: ResourceWarning: unclosed 
file <_io.TextIOWrapper name='Lib/sre_compile.py' mode='r' encoding='utf-8'>
  check(fullname)
/home/anthony/devinabox/cpython/Lib/tabnanny.py:93: ResourceWarning: unclosed 
file <_io.TextIOWrapper name='Lib/this.py' mode='r' encoding='utf-8'>
  check(fullname)
/home/anthony/devinabox/cpython/Lib/tabnanny.py:93: ResourceWarning: unclosed 
file <_io.TextIOWrapper name='Lib/difflib.py' mode='r' encoding='utf-8'>
  check(fullname)

The attached patch fixes the problem.

--
components: Library (Lib)
files: tabnanny_close_file.patch
keywords: patch
messages: 142681
nosy: anthonyb, ncoghlan
priority: normal
severity: normal
status: open
title: Tabnanny doesn't close its tokenize files properly
type: resource usage
versions: Python 3.3
Added file: http://bugs.python.org/file22992/tabnanny_close_file.patch

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