A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-dev/2003-April/034565.html below:

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

[Python-Dev] Using temp files and the Internet in regression tests [Python-Dev] Using temp files and the Internet in regression testsGuido van Rossum guido@python.org
Sun, 13 Apr 2003 20:55:18 -0400
> > No, you check whether the 'network' resource name is enabled in
> > test_support.  Use test_support.is_resource_enabled('network').
> 
> Another thought that has come to mind; should we be diligent about
> creating new objects like good testers?  Or should we minimize it since
> net connections are expensive to make and can hold things up.

Net connections aren't that expensive; you can happily create a new
net connection for each individual test.  Of course, tests that hold
things up should be minimized, but in my experience, tests containing
waits (even sleep(0.1)) hold things up much more than opening and
closing sockets.

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



RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4