In article <[email protected]>,
 Eric Araujo <[email protected]> wrote:
> > changeset:   71030:abfe28e7e5cd
> > branch:      2.7
> > user:        Ned Deily <[email protected]>
> 
> > diff --git a/Lib/test/test_posix.py b/Lib/test/test_posix.py
> > --- a/Lib/test/test_posix.py
> > +++ b/Lib/test/test_posix.py
> > @@ -11,10 +11,12 @@
> >  import os
> >  import pwd
> >  import shutil
> > +import stat
> >  import sys
> >  import unittest
> >  import warnings
> >  
> > +_DUMMY_SYMLINK = '%s/dummy-symlink' % os.getenv('TMPDIR', '/tmp')
> 
> Why not let the tempfile module do this for you?

I didn't feel it was worthwhile modifying the OP's submitted working 
patch.  But, since you've pointed it out, I've modified the test to use 
tempfile and randomize the symlink file name as well.

-- 
 Ned Deily,
 [email protected]

_______________________________________________
Python-Dev mailing list
[email protected]
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