Author: rhuijben
Date: Thu Sep  2 15:14:48 2010
New Revision: 991972

URL: http://svn.apache.org/viewvc?rev=991972&view=rev
Log:
* subversion/tests/cmdline/svntest/sandbox.py
  (_set_name): Use shutil.move() instead of os.rename() to allow replacing
    files on Windows.

Modified:
    subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py

Modified: subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py
URL: 
http://svn.apache.org/viewvc/subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py?rev=991972&r1=991971&r2=991972&view=diff
==============================================================================
--- subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py (original)
+++ subversion/trunk/subversion/tests/cmdline/svntest/sandbox.py Thu Sep  2 
15:14:48 2010
@@ -65,7 +65,7 @@ class Sandbox:
       self.authz_file = os.path.join(svntest.main.work_dir, "authz")
       tmp_authz_file = os.path.join(svntest.main.work_dir, "authz-" + 
self.name)
       open(tmp_authz_file, 'w').write("[/]\n* = rw\n")
-      os.rename(tmp_authz_file, self.authz_file)
+      shutil.move(tmp_authz_file, self.authz_file)
 
     # For svnserve tests we have a per-repository authz file, and it
     # doesn't need to be there in order for things to work, so we don't


Reply via email to