[Python-Dev] Using temp files and the Internet in regression tests

Guido van Rossum guido@python.org
Sat, 12 Apr 2003 20:08:04 -0400


> For the regression tests for the stdlib, is it okay to create temporary
> files (using tempfile) and connect to the Internet (when the network
> resource is enabled)?

Tempfiles: definitely; though if you need a single temporary file, you
can use test_support.TESTFN.

Connecting to the Internet: only if the network resource is enabled.
Then it is up to the tester to make sure that connection to the
Internet is possible.

--Guido van Rossum (home page: http://www.python.org/~guido/)