[issue19877] test_resolve_dot of test_pathlib.py fails on Windows Vista

2013-12-03 Thread Vajrasky Kok

New submission from Vajrasky Kok:

You must run this test as administrator.

C:\Users\vajrasky\Code\cpythonPCbuild\python.exe Lib\test\test_pathlib.py
..s..s..s..s.s.E


...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



[issue19877] test_resolve_dot of test_pathlib.py fails on Windows Vista

2013-12-03 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Wow, thank you. It's a pity none of the Windows buildbots runs in administrator 
mode.

--

___
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



[issue19877] test_resolve_dot of test_pathlib.py fails on Windows Vista

2013-12-03 Thread Roundup Robot

Roundup Robot added the comment:

New changeset 076824de7650 by Antoine Pitrou in branch 'default':
Issue #19877: fix regression in test_pathlib when Windows has symlink support 
available (i.e. in administrator mode).
http://hg.python.org/cpython/rev/076824de7650

--
nosy: +python-dev

___
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



[issue19877] test_resolve_dot of test_pathlib.py fails on Windows Vista

2013-12-03 Thread Antoine Pitrou

Antoine Pitrou added the comment:

Now committed.

--
resolution:  - fixed
stage:  - committed/rejected
status: open - closed

___
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



[issue19877] test_resolve_dot of test_pathlib.py fails on Windows Vista

2013-12-03 Thread Brian Curtin

Brian Curtin added the comment:

My build slave ran as admin in order to make sure symlinks were covered, but I 
don't have the hardware anymore. I'll see if I can get another machine up and 
running.

--
nosy: +brian.curtin

___
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