-
-
Notifications
You must be signed in to change notification settings - Fork 32k
test_pathlib fails if current path has junctions #76447
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
On this machine, C:\Users is a junction to D:\Users . Sample failure: Running Release|x64 interpreter... 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') ====================================================================== 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') ====================================================================== 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') ====================================================================== 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
? ^ ====================================================================== 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') ====================================================================== 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') ====================================================================== 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') ====================================================================== 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') ====================================================================== 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
? ^ ====================================================================== 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') Ran 394 tests in 2.215s FAILED (failures=10, skipped=112) |
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. |
No longer reproducible, suspect this was fixed by GH-25264. |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: