On 12/20/06, Joe Swatosh <joe.swatosh@gmail.com> wrote:
> On 12/20/06, D.J. Heap <djheap@gmail.com> wrote:
> > On 12/20/06, Joe Swatosh <joe.swatosh@gmail.com> wrote:
> > >
> <snip>
> > [snip]
> >
> >
> > You may also need to copy all the support dll's (apr, ssl, db4, etc.)
> > if they are not in your PATH somewhere.
> >
> > DJ
> >
>
> DJ,
>
> Thanks for the hint. I did indeed have all the dll's available on the
> path,however, I (not a Python programmer) didn't realize that I needed
> to create a .pth file in the site-packages directory. With that in
> place, my tests now look like:
>
> <test>
> D:\SVN\src-trunk\subversion\bindings\swig\python>python tests\run_all.py
> ..........................EEFEEEEEEEFEEEEEEEEEE.....Traceback (most
> recent call last):
> File "tests\run_all.py", line 19, in ?
> unittest.main(defaultTest='suite')
> File "C:\Python24\lib\unittest.py", line 759, in __init__
> self.runTests()
> File "C:\Python24\lib\unittest.py", line 796, in runTests
> result = self.testRunner.run(self.test)
> File "C:\Python24\lib\unittest.py", line 696, in run
> test(result)
> File "C:\Python24\lib\unittest.py", line 428, in __call__
> return self.run(*args, **kwds)
> File "C:\Python24\lib\unittest.py", line 424, in run
> test(result)
> File "C:\Python24\lib\unittest.py", line 428, in __call__
> return self.run(*args, **kwds)
> File "C:\Python24\lib\unittest.py", line 424, in run
> test(result)
> File "D:\SVN\src-trunk\subversion\bindings\swig\python\tests\trac\test.py",
> line 35, in __call__
> self.tearDown()
> File "D:\SVN\src-trunk\subversion\bindings\swig\python\tests\trac\versioncontrol\tests\svn_fs.py",
> line 72, in tearDown
> shutil.rmtree(REPOS_PATH)
> File "C:\python24\lib\shutil.py", line 163, in rmtree
> rmtree(fullname, ignore_errors, onerror)
> File "C:\python24\lib\shutil.py", line 163, in rmtree
> rmtree(fullname, ignore_errors, onerror)
> File "C:\python24\lib\shutil.py", line 168, in rmtree
> onerror(os.remove, fullname, sys.exc_info())
> File "C:\python24\lib\shutil.py", line 166, in rmtree
> os.remove(fullname)
> OSError: [Errno 13] Permission denied:
> 'c:\\docume~1\\joe-sw~1.acs\\locals~1\\temp\\trac-svnrepos\\test0\\db\\format'
> </test>
>
> I then have to delete the trac-svnrepos directory out of TEMP before
> any of the tests will work again. Any hints to get me past this??
Hi Joe,
It looks like you got this "permission denied" error because Python's
shutil.rmtree function cannot delete read-only files, and therefore
cannot delete Subversion repositories on Windows without some custom
chmod business, which I did not implement in test_create.
To fix this bug, I've updated Subversion to use svn_repos_delete to
delete repositories in r22879, so we don't need to use shutil.rmtree.
Can you try again with my fix?
Thanks,
David
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 3 03:27:52 2007