This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author msmhrt
Recipients msmhrt
Date 2014-07-06.02:49:32
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1404614973.3.0.388136336832.issue21925@psf.upfronthosting.co.za>
In-reply-to
Content
It seems that ResouceWarning about unclosed file handles with '-W all' option sometimes doesn't display.
Is this behaviour normal?

$ uname -a
Linux ashrose 3.2.0-65-generic #99-Ubuntu SMP Fri Jul 4 21:03:29 UTC 2014 x86_64 x86_64 x86_64 GNU/Linux
$ python3.4 --version
Python 3.4.1
$ touch spam.txt
$ echo 'a = open("spam.txt")' >test_warning.py
$
$ python3.4 -W all test_warning.py
$ python3.4 -W all test_warning.py
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='spam.txt' mode='r' encoding='UTF-8'>
$ python3.4 -W all test_warning.py
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='spam.txt' mode='r' encoding='UTF-8'>
$ python3.4 -W all test_warning.py
$ python3.4 -W all test_warning.py
$ python3.4 -W all test_warning.py
$ python3.4 -W all test_warning.py
$ python3.4 -W all test_warning.py
sys:1: ResourceWarning: unclosed file <_io.TextIOWrapper name='spam.txt' mode='r' encoding='UTF-8'>
$
History
Date User Action Args
2014-07-06 02:49:33msmhrtsetrecipients: + msmhrt
2014-07-06 02:49:33msmhrtsetmessageid: <1404614973.3.0.388136336832.issue21925@psf.upfronthosting.co.za>
2014-07-06 02:49:33msmhrtlinkissue21925 messages
2014-07-06 02:49:32msmhrtcreate