Message222390
| 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:33 | msmhrt | set | recipients:
+ msmhrt |
| 2014年07月06日 02:49:33 | msmhrt | set | messageid: <1404614973.3.0.388136336832.issue21925@psf.upfronthosting.co.za> |
| 2014年07月06日 02:49:33 | msmhrt | link | issue21925 messages |
| 2014年07月06日 02:49:32 | msmhrt | create |
|