testing -- what to do for testing code with behaviour dependant upon which files exist?

Grig Gheorghiu grig.gheorghiu at gmail.com
Sat Apr 2 18:54:46 EST 2005


Can't you use the tempfile module to generate unique names for
non-existent files and directories? Take a look at
http://www.python.org/doc/lib/module-tempfile.html -- it works on all
supported platforms.

Grig




More information about the Python-list mailing list