On Tue, May 13, 2008 at 9:09 PM, Jesus Cea <[EMAIL PROTECTED]> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
>  Hash: SHA1
>
>  I just committed pybsddb 4.6.4 to python svn. My next step (after a
>  successfull buildbot cycle, I hope!) is to commit the new testsuite.
>  First I need to review any changes there since I maintain pybsddb.
>
>  The testsuite creates a lot of files/directories while working. Fine,
>  since it cleans later, unless some test crashes hard. My testcode
>  defines a variable to the path I want to use to keep those files/dirs.
>  Currently it is "/tmp/z-BerkeleyDB", or something like that.
>
>  Since my code allows for testcases to be run in multiple threads and/or
>  processes, where would be a sensible path choice for temporal files?.
>  Current working directory would be fine, if "somebody" is cleaning after
>  running all tests.
>

It is up to the tests to clean up after themselves since they can be
executed directly, so there is not magical location that gets cleaned
up in case a test screws up. You can use test.test_support.TESTFN if
you want a location. Or something from tempfile.

-Brett
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to