[New-bugs-announce] [issue18394] cgi.FieldStorage triggers ResourceWarning sometimes

Florent Xicluna report at bugs.python.org
Sun Jul 7 11:50:01 CEST 2013


New submission from Florent Xicluna:

It happens when POSTing a file for example.

When running the test suite:
./python.exe -m test test_cgi


Or with the script attached:
$ ./python test_fieldstorage.py 
test_fieldstorage.py:28: ResourceWarning: unclosed file <_io.BufferedRandom name=3>
  check('x' * 1010)           # ResourceWarning
test_fieldstorage.py:29: ResourceWarning: unclosed file <_io.BufferedRandom name=3>
  check('x' * (maxline - 1))  # ResourceWarning

----------
components: Library (Lib)
files: test_fieldstorage.py
messages: 192530
nosy: flox, orsenthil, serhiy.storchaka
priority: normal
severity: normal
status: open
title: cgi.FieldStorage triggers ResourceWarning sometimes
type: behavior
versions: Python 3.3, Python 3.4
Added file: http://bugs.python.org/file30837/test_fieldstorage.py

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue18394>
_______________________________________


More information about the New-bugs-announce mailing list