[py-svn] r51993 - py/branch/guido-svn-auth/py/path/svn/testing

guido at codespeak.net guido at codespeak.net
Sat Mar 1 13:59:12 CET 2008


Author: guido
Date: Sat Mar  1 13:59:06 2008
New Revision: 51993

Modified:
   py/branch/guido-svn-auth/py/path/svn/testing/test_auth.py
Log:
fixed stupid URL to path conversion issue on win32

Modified: py/branch/guido-svn-auth/py/path/svn/testing/test_auth.py
==============================================================================
--- py/branch/guido-svn-auth/py/path/svn/testing/test_auth.py	(original)
+++ py/branch/guido-svn-auth/py/path/svn/testing/test_auth.py	Sat Mar  1 13:59:06 2008
@@ -258,7 +258,11 @@
         func_name = meth.im_func.func_name
         self.repo = svntestbase.make_test_repo('TestSvnAuthFunctional.%s' % (
                                                func_name,))
-        self.repopath = py.path.local(str(self.repo)[7:])
+        repodir = str(self.repo)[7:]
+        if py.std.sys.platform == 'win32':
+            # remove trailing slash...
+            repodir = repodir[1:]
+        self.repopath = py.path.local(repodir)
         self.temppath = py.test.ensuretemp('TestSvnAuthFunctional.%s' % (
                                            func_name))
         self.auth = py.path.SvnAuth('johnny', 'foo', cache_auth=False,



More information about the pytest-commit mailing list