]> granicus.if.org Git - python/commitdiff
Try to fix Solaris buildbot rmtree failure in test_getcwd_long_pathnames
authorR. David Murray <rdmurray@bitdance.com>
Thu, 9 Jul 2009 18:41:03 +0000 (18:41 +0000)
committerR. David Murray <rdmurray@bitdance.com>
Thu, 9 Jul 2009 18:41:03 +0000 (18:41 +0000)
cleanup.  If this fix works, it means that Solaris is unique among
our platforms in what happens when shutil.rmtree is called on the
current working directory (ie: it doesn't work on Solaris, but
it does everywhere else).

Lib/test/test_posix.py

index 3a3bc38a40fc6209fe85e449e73d2c5c2423c3d2..dc50e21ca423e1014b748646cef28d3790d37668 100644 (file)
@@ -267,9 +267,8 @@ class PosixTester(unittest.TestCase):
                 _create_and_do_getcwd(dirname)
 
             finally:
-                # XXX: Temporarily ignore errors to see if the test gives useful failure info on Solaris buildbot
-                shutil.rmtree(base_path, ignore_errors=True)
                 os.chdir(curdir)
+                shutil.rmtree(base_path)
 
 
 def test_main():