[Python-Dev] Using temp files and the Internet in regression tests (original) (raw)
Brett Cannon drifty@alum.berkeley.edu
Sun, 13 Apr 2003 12:53:55 -0700 (PDT)
- Previous message: [Python-Dev] Using temp files and the Internet in regression tests
- Next message: [Python-Dev] Using temp files and the Internet in regression tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
[Guido van Rossum]
<snip - Me trying to find out whether it's OK to use the Net in tests>
> No, you check whether the 'network' resource name is enabled in > testsupport. Use testsupport.isresourceenabled('network').
I realize that you might not know how to run such tests either. The magic words are regrtest.py -u network BTW, this isn't described in Lib/test/README -- perhaps you or someone else can add it? (Both the -u option and the isresourceenabled() function.)
I can write some basic instructions on how to use regrtest and test_support; someone will just have to check them in.
Hm, maybe these docs shouldn't be so hidden and there should be a standard library chapter on the test package and its submodules and the conventions for writing and running tests?
That definitely wouldn't hurt. It might also get people to write tests more often and maybe help with improving our code if they knew about regrtest and test_support.
-Brett
- Previous message: [Python-Dev] Using temp files and the Internet in regression tests
- Next message: [Python-Dev] Using temp files and the Internet in regression tests
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]