]> granicus.if.org Git - python/commit
provide a common method to check for RETR_DATA validity, first checking the expected...
authorGiampaolo Rodola' <g.rodola@gmail.com>
Mon, 9 Jan 2012 16:10:10 +0000 (17:10 +0100)
committerGiampaolo Rodola' <g.rodola@gmail.com>
Mon, 9 Jan 2012 16:10:10 +0000 (17:10 +0100)
commit8bc858587305f99dc6e3c2477adaa53dab09df23
treeece227ea5c5cf4e22c1c678d57a78b7e4df30f29
parent0c5e52f0bda92b653614c0cbbefc9ddcefb7a380
provide a common method to check for RETR_DATA validity, first checking the expected len and then the actual data content; this way we get a failure on len mismatch rather than content mismatch (which is very long and unreadable)
Lib/test/test_ftplib.py