Unittest - testing for filenames and filesize

Roy Smith roy at panix.com
Thu Aug 23 15:06:29 EDT 2012


On Thursday, August 23, 2012 1:29:19 PM UTC-4, Terry Reedy wrote:

> One can start with a set rather than tuple of file names.
>          filenames = {"this.txt", "that.txt", "the_other.txt"}

Yeah, that's even cleaner.  Just be aware, the set notation above is only available in (IIRC), 2.7 or above.



More information about the Python-list mailing list