Commits

Anonymous committed 4268d27

0.12.3dev: backport r10794 to ease testing with recent versions of Subversion.

Comments (0)

Files changed (1)

trac/versioncontrol/tests/svn_fs.py

             core.apr_terminate()
 
     def tearDown(self):
-        if os.name == 'nt':
-            # The Windows version of 'shutil.rmtree' doesn't override the
-            # permissions of read-only files, so we have to do it ourselves:
-            format_file = os.path.join(REPOS_PATH, 'db', 'format')
-            if os.path.isfile(format_file):
-                os.chmod(format_file, stat.S_IRWXU)
-            os.chmod(os.path.join(REPOS_PATH, 'format'), stat.S_IRWXU)
-        shutil.rmtree(REPOS_PATH)
+        repos.svn_repos_delete(REPOS_PATH)
 
 
 # -- Re-usable test mixins