summaryrefslogtreecommitdiff
path: root/tests/test_multidict.py
Commit message (Collapse)AuthorAgeFilesLines
* Avoid copying FieldStorage if possible. (#30)Benjamin Peterson2019-08-291-5/+8
| | | | | On Python 3, cgi.FieldStorage has a __del__ method that closes the underlying file [1]. This means that if the copy made from UnicodeMultiDict._decode_value is garbage collected, the file underlying the original FieldStorage will be closed! Fix this by not copying FieldStorage if it is not required by decode_keys=False. I cannot think of a nice way to fix this problem if decode_keys=True. [1] https://github.com/python/cpython/commit/f79126f373a9d5c9b584a8db736fe490fcbfa77a
* Switch from nose to pytestpytestMarc Abramowitz2016-03-081-4/+4
|
* tox.ini: Measure test coveragetox_coverageMarc Abramowitz2016-03-071-0/+162