[Python-Dev] Re: [Python-checkins] CVS: python/dist/src/Lib/test test_dumbdbm.py,NONE,1.1
Sat, 20 Jan 2001 17:36:05 +0100
On Sat, Jan 20, 2001 at 11:18:39AM -0500, Guido van Rossum wrote:
> > On Thu, Jan 18, 2001 at 08:46:54AM -0800, Guido van Rossum wrote:
> > > filename = '/tmp/delete_me'
> > This reminds me: we need a portable way to handle test-files :)
> Yeah, I noticed that this test failed on Windows -- fixed now.
> The test_support module exports TESTFN; there's also tempfile.mktemp()
> which should generate temporary files on all platforms.
> Is that enough?
Well, there is one more issue, which we can't fix terribly easy: test_fcntl
tries to flock() the file. flock() doesn't work on all filesystems (like
NFS) :P If we cared a lot, we could try several alternatives (current dir,
/tmp, /var/tmp) in the specific case of flock, but personally I don't want to
bother, and real sysadmins (who should care about the test failure) are more
likely to build Python on a local disk than in their NFS-mounted
homedirectory. At least that's how we do it :-)
Thomas Wouters <email@example.com>
Hi! I'm a .signature virus! copy me into your .signature file to help me spread!