[pypy-commit] pypy default: Fix test_rabspath_absolute_nt
Vincent Legoll
pypy.commits at gmail.com
Thu Jan 21 03:51:44 EST 2016
Author: Vincent Legoll <vincent.legoll at idgrilles.fr>
Branch:
Changeset: r81883:49cd97514141
Date: 2016-01-21 08:52 +0100
http://bitbucket.org/pypy/pypy/changeset/49cd97514141/
Log: Fix test_rabspath_absolute_nt rpath._nt_rsplitdrive() returns a
tuple, use the right part of it
diff --git a/rpython/rlib/test/test_rpath.py b/rpython/rlib/test/test_rpath.py
--- a/rpython/rlib/test/test_rpath.py
+++ b/rpython/rlib/test/test_rpath.py
@@ -68,8 +68,8 @@
assert rpath._nt_rabspath('d:\\foo\\bar\\..') == 'd:\\foo'
assert rpath._nt_rabspath('d:\\foo\\bar\\..\\x') == 'd:\\foo\\x'
curdrive = _ = rpath._nt_rsplitdrive(os.getcwd())
- assert len(curdrive) == 2 and curdrive[1] == ':'
- assert rpath.rabspath('\\foo') == '%s\\foo' % curdrive
+ assert len(curdrive) == 2 and curdrive[0][1] == ':'
+ assert rpath.rabspath('\\foo') == '%s\\foo' % curdrive[0]
def test_risabs_posix():
assert rpath._posix_risabs('/foo/bar')
More information about the pypy-commit
mailing list