Author: Philip Jenvey <[email protected]>
Branch: py3k
Changeset: r63604:2bea06b34961
Date: 2013-04-24 22:48 -0700
http://bitbucket.org/pypy/pypy/changeset/2bea06b34961/

Log:    bytes begets bytes

diff --git a/pypy/module/posix/interp_posix.py 
b/pypy/module/posix/interp_posix.py
--- a/pypy/module/posix/interp_posix.py
+++ b/pypy/module/posix/interp_posix.py
@@ -393,7 +393,7 @@
         else:
             path = space.str0_w(w_path)
             fullpath = rposix._getfullpathname(path)
-            w_fullpath = space.wrap(fullpath)
+            w_fullpath = space.wrapbytes(fullpath)
     except OSError, e:
         raise wrap_oserror2(space, e, w_path)
     else:
diff --git a/pypy/module/posix/test/test_posix2.py 
b/pypy/module/posix/test/test_posix2.py
--- a/pypy/module/posix/test/test_posix2.py
+++ b/pypy/module/posix/test/test_posix2.py
@@ -502,6 +502,7 @@
             # just see if it does anything
             path = sysdrv + 'hubber'
             assert os.sep in posix._getfullpathname(path)
+            assert type(posix._getfullpathname(b'C:')) is bytes
 
     def test_utime(self):
         os = self.posix
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to