Repository navigation
Commit 3d81c05
* gh-131178: Mock sys.stdout in test_ftplib CLI retrieve test
Mock sys.stdout in CommandLineTest.test_cli_retrieve_file so that
accessing sys.stdout.buffer does not fail when regrtest or other test
runners wrap sys.stdout in an io.StringIO object.
* Fix the refleaks by not creating an instance of OSError
---------
Co-authored-by: Senthil Kumaran <senthil@python.org>
1 parent 4594f5a commit 3d81c05
1 file changed
Lines changed: 8 additions & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1242 | 1242 | | |
1243 | 1243 | | |
1244 | 1244 | | |
1245 | | - | |
| 1245 | + | |
| 1246 | + | |
1246 | 1247 | | |
1247 | | - | |
1248 | | - | |
1249 | | - | |
| 1248 | + | |
| 1249 | + | |
| 1250 | + | |
| 1251 | + | |
| 1252 | + | |
1250 | 1253 | | |
1251 | 1254 | | |
1252 | 1255 | | |
1253 | | - | |
| 1256 | + | |
1254 | 1257 | | |
1255 | 1258 | | |
1256 | 1259 | | |
| |||
0 commit comments