[py-svn] commit/py: hpk42: fix path manip on win32

Bitbucket commits-noreply at bitbucket.org
Thu Jan 27 16:03:40 CET 2011


1 new changeset in py:

http://bitbucket.org/hpk42/py/changeset/ac20cd7258b8/
changeset:   r2001:ac20cd7258b8
user:        hpk42
date:        2011-01-27 16:03:31
summary:     fix path manip on win32
affected #:  1 file (14 bytes)

--- a/py/_path/local.py	Thu Jan 27 15:13:14 2011 +0100
+++ b/py/_path/local.py	Thu Jan 27 16:03:31 2011 +0100
@@ -161,8 +161,9 @@
         if not iswin32:
             return py.error.checked_call(
                     os.path.samefile, str(self), str(other))
-        if not os.path.isabs(other):
-            other = os.path.abspath(other)
+        if self == other:
+            return True
+        other = os.path.abspath(str(other))
         return self == other
 
     def remove(self, rec=1, ignore_errors=False):

Repository URL: https://bitbucket.org/hpk42/py/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.



More information about the pytest-commit mailing list