[issue32266] test_pathlib fails if current path has junctions

2018-01-22 Thread Larry Hastings

Larry Hastings  added the comment:

Python 3.4 and 3.5 are in "security fixes only" mode.  This is a minor bugfix, 
so it's too late to accept it into 3.4 and 3.5.

--
nosy: +larry
versions:  -Python 3.4, Python 3.5

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32266] test_pathlib fails if current path has junctions

2017-12-10 Thread Ivan Pozdeev

Change by Ivan Pozdeev :


--
keywords: +patch
pull_requests: +4679
stage:  -> patch review

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue32266] test_pathlib fails if current path has junctions

2017-12-10 Thread Ivan Pozdeev

New submission from Ivan Pozdeev :

On this machine, C:\Users is a junction to D:\Users .

Sample failure:

Running Release|x64 interpreter...
FFFs...s..s.s.ss..FF...FFFs...s..s.s.ss..FF...
==
FAIL: test_complex_symlinks_absolute (__main__.PathTest)
--
Traceback (most recent call last):
  File "Lib\test\test_pathlib.py", line 2027, in test_complex_symlinks_absolute
self._check_complex_symlinks(BASE)
  File "Lib\test\test_pathlib.py", line 1994, in _check_complex_symlinks
self.assertEqual(p, P)
AssertionError: 
WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != 
WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

==
FAIL: test_complex_symlinks_relative (__main__.PathTest)
--
Traceback (most recent call last):
  File "Lib\test\test_pathlib.py", line 2031, in test_complex_symlinks_relative
self._check_complex_symlinks('.')
  File "Lib\test\test_pathlib.py", line 1994, in _check_complex_symlinks
self.assertEqual(p, P)
AssertionError: 
WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != 
WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

==
FAIL: test_complex_symlinks_relative_dot_dot (__main__.PathTest)
--
Traceback (most recent call last):
  File "Lib\test\test_pathlib.py", line 2035, in 
test_complex_symlinks_relative_dot_dot
self._check_complex_symlinks(os.path.join('dirA', '..'))
  File "Lib\test\test_pathlib.py", line 1994, in _check_complex_symlinks
self.assertEqual(p, P)
AssertionError: 
WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != 
WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

==
FAIL: test_resolve_common (__main__.PathTest)
--
Traceback (most recent call last):
  File "Lib\test\test_pathlib.py", line 1491, in test_resolve_common
os.path.join(BASE, 'foo'))
AssertionError: 'D:\\Users\\Ivan\\Documents\\cpython_all\\@test_2376_tmp\\foo' 
!= 'C:\\Users\\Ivan\\Documents\\cpython_all\\@test_2376_tmp\\foo'
- D:\Users\Ivan\Documents\cpython_all\@test_2376_tmp\foo
? ^
+ C:\Users\Ivan\Documents\cpython_all\@test_2376_tmp\foo
? ^


==
FAIL: test_resolve_dot (__main__.PathTest)
--
Traceback (most recent call last):
  File "Lib\test\test_pathlib.py", line 1550, in test_resolve_dot
self.assertEqual(q.resolve(strict=True), p)
AssertionError: 
WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != 
WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

==
FAIL: test_complex_symlinks_absolute (__main__.WindowsPathTest)
--
Traceback (most recent call last):
  File "Lib\test\test_pathlib.py", line 2027, in test_complex_symlinks_absolute
self._check_complex_symlinks(BASE)
  File "Lib\test\test_pathlib.py", line 1994, in _check_complex_symlinks
self.assertEqual(p, P)
AssertionError: 
WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != 
WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

==
FAIL: test_complex_symlinks_relative (__main__.WindowsPathTest)
--
Traceback (most recent call last):
  File "Lib\test\test_pathlib.py", line 2031, in test_complex_symlinks_relative
self._check_complex_symlinks('.')
  File "Lib\test\test_pathlib.py", line 1994, in _check_complex_symlinks
self.assertEqual(p, P)
AssertionError: 
WindowsPath('D:/Users/Ivan/Documents/cpython_all/@test_2376_tmp') != 
WindowsPath('C:/Users/Ivan/Documents/cpython_all/@test_2376_tmp')

==
FAIL: test_complex_symlinks_relative_dot_dot (__main__.WindowsPathTest)
--
Traceback (most recent call last):
  File