This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vajrasky
Recipients pitrou, vajrasky
Date 2013-12-03.16:06:57
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1386086817.69.0.41545302565.issue19877@psf.upfronthosting.co.za>
In-reply-to
Content
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.
History
Date User Action Args
2013-12-03 16:06:57vajraskysetrecipients: + vajrasky, pitrou
2013-12-03 16:06:57vajraskysetmessageid: <1386086817.69.0.41545302565.issue19877@psf.upfronthosting.co.za>
2013-12-03 16:06:57vajraskylinkissue19877 messages
2013-12-03 16:06:57vajraskycreate