• Victor Stinner's avatar
    test/support.py: remove TESTFN if it is a directory · 02e8c733
    Victor Stinner authored
    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
    02e8c733
support.py 35.6 KB