]> granicus.if.org Git - python/commit
test/support.py: remove TESTFN if it is a directory
authorVictor Stinner <victor.stinner@haypocalc.com>
Fri, 14 May 2010 20:08:55 +0000 (20:08 +0000)
committerVictor Stinner <victor.stinner@haypocalc.com>
Fri, 14 May 2010 20:08:55 +0000 (20:08 +0000)
commit7f6423a0b42a53cba4879aa97dd3702811b86278
treef598a1fdbca1922a3546f008559d3d1d00b2f92b
parent203406c3681cd0bfe53f44f2d731d05d8d71cd57
test/support.py: remove TESTFN if it is a directory

Because of my previous commit (r81171), test_os failed without removing TESTFN
directory (shutil.rmtree() was broken). Some buildbots still have a @test
directory and some tests fail because of that.

The bug is reproductible with:

  mkdir @test
  touch @test/abc
  ./python Lib/test/regrtest.py test_site
Lib/test/support.py