New submission from Vajrasky Kok: You must run this test as administrator.
C:\Users\vajrasky\Code\cpython>PCbuild\python.exe Lib\test\test_pathlib.py ..........s..s..s..s.........s.....E............ssssssssssssssssssssssssssssssss ssssssssssssssssssssssssssssssssssssssssssssssss................................ ................................................................................ ...............................................s..s..s..s.........s.....E....... .. ====================================================================== ERROR: test_resolve_dot (__main__.PathTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib\test\test_pathlib.py", line 1281, in test_resolve_dot self.assertEqual(q.resolve(), p) File "C:\Users\vajrasky\Code\cpython\lib\pathlib.py", line 1017, in resolve s = self._flavour.resolve(self) File "C:\Users\vajrasky\Code\cpython\lib\pathlib.py", line 179, in resolve return self._ext_to_normal(_getfinalpathname(s)) OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\Users\\vajrasky\\Code\\cpython\\@test_5860_tmp\\2' ====================================================================== ERROR: test_resolve_dot (__main__.WindowsPathTest) ---------------------------------------------------------------------- Traceback (most recent call last): File "Lib\test\test_pathlib.py", line 1281, in test_resolve_dot self.assertEqual(q.resolve(), p) File "C:\Users\vajrasky\Code\cpython\lib\pathlib.py", line 1017, in resolve s = self._flavour.resolve(self) File "C:\Users\vajrasky\Code\cpython\lib\pathlib.py", line 179, in resolve return self._ext_to_normal(_getfinalpathname(s)) OSError: [WinError 123] The filename, directory name, or volume label syntax is incorrect: 'C:\\Users\\vajrasky\\Code\\cpython\\@test_5860_tmp\\2' ---------------------------------------------------------------------- Windows does not like "/" in its name for the file. Attached the patch to fix the test. ---------- components: Tests files: fix_test_resolve_dot_on_windows.patch keywords: patch messages: 205126 nosy: pitrou, vajrasky priority: normal severity: normal status: open title: test_resolve_dot of test_pathlib.py fails on Windows Vista type: behavior versions: Python 3.4 Added file: http://bugs.python.org/file32949/fix_test_resolve_dot_on_windows.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue19877> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com