Commit 8c140a3
authored
HTTPRequest: close file uploads to prevent ResourceWarning (#1243)
* testHTTPRequest: use larger file for test_processInputs_w_large_input_gets_tempfile
This test was not using a large enough file to use temporary file, but
the test was not really asserting that a temporary file was used.
* HTTPRequest: close file uploads to prevent ResourceWarning1 parent 7802542 commit 8c140a3
File tree
3 files changed
+11
-3
lines changed- src/ZPublisher
- tests
3 files changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
13 | 16 | | |
14 | 17 | | |
15 | 18 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
192 | 192 | | |
193 | 193 | | |
194 | 194 | | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
195 | 198 | | |
196 | 199 | | |
197 | 200 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
901 | 901 | | |
902 | 902 | | |
903 | 903 | | |
904 | | - | |
905 | | - | |
| 904 | + | |
| 905 | + | |
| 906 | + | |
| 907 | + | |
906 | 908 | | |
907 | 909 | | |
908 | 910 | | |
| |||
1640 | 1642 | | |
1641 | 1643 | | |
1642 | 1644 | | |
1643 | | - | |
| 1645 | + | |
1644 | 1646 | | |
1645 | 1647 | | |
1646 | 1648 | | |
| |||
0 commit comments