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.

classification
Title: Test failure in test_macpath.py test_realpath (Mac OS X)
Type: behavior Stage: resolved
Components: macOS Versions: Python 3.2, Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: ronaldoussoren Nosy List: flox, michael.foord, ned.deily, ronaldoussoren
Priority: normal Keywords: patch

Created on 2010-03-20 02:53 by michael.foord, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
issue8179_macpath_realpath.diff flox, 2010-03-20 09:15 Patch, apply to 2.x
Messages (5)
msg101360 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2010-03-20 02:53
On Mac OS X 10.6.2


======================================================================
ERROR: test_realpath (__main__.MacCommonTest)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/compile/python-back/Lib/test/test_genericpath.py", line 213, in test_realpath
    self.assertIn("foo", self.pathmodule.realpath("foo"))
  File "/compile/python-back/Lib/macpath.py", line 209, in realpath
    path = Carbon.File.FSResolveAliasFile(path, 1)[0].as_pathname()
Error: (-43, 'File not found')

----------------------------------------------------------------------
Ran 19 tests in 0.087s

FAILED (errors=1, skipped=1)
Traceback (most recent call last):
  File "Lib/test/test_macpath.py", line 57, in <module>
    test_main()
  File "Lib/test/test_macpath.py", line 53, in test_main
    test_support.run_unittest(MacPathTestCase, MacCommonTest)
  File "/compile/python-back/Lib/test/test_support.py", line 1031, in run_unittest
    _run_suite(suite)
  File "/compile/python-back/Lib/test/test_support.py", line 1014, in _run_suite
    raise TestFailed(err)
test.test_support.TestFailed: Traceback (most recent call last):
  File "/compile/python-back/Lib/test/test_genericpath.py", line 213, in test_realpath
    self.assertIn("foo", self.pathmodule.realpath("foo"))
  File "/compile/python-back/Lib/macpath.py", line 209, in realpath
    path = Carbon.File.FSResolveAliasFile(path, 1)[0].as_pathname()
Error: (-43, 'File not found')
msg101365 - (view) Author: Ned Deily (ned.deily) * (Python committer) Date: 2010-03-20 06:01
This failure seems to be caused by major changes to test_macpath.  I'm not sure how much of this is really applicable to macpath which implements the obsolete MacOS 9 path functions.  Perhaps leave well enough alone?
msg101367 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-03-20 09:15
The changes enabled more tests for all *path related modules.

Please try attached patch.
msg101408 - (view) Author: Michael Foord (michael.foord) * (Python committer) Date: 2010-03-20 23:23
Test passes for me with the patch applied.
msg101419 - (view) Author: Florent Xicluna (flox) * (Python committer) Date: 2010-03-21 12:30
Fixed with r79195 and r79196.
History
Date User Action Args
2022-04-11 14:56:58adminsetgithub: 52426
2010-03-21 12:30:27floxsetstatus: open -> closed
resolution: accepted -> fixed
messages: + msg101419

stage: patch review -> resolved
2010-03-20 23:23:42michael.foordsetmessages: + msg101408
2010-03-20 10:54:47floxsetstage: needs patch -> patch review
2010-03-20 09:15:04floxsetfiles: + issue8179_macpath_realpath.diff
priority: normal
type: behavior

components: + macOS
versions: + Python 3.2
keywords: + patch
nosy: ronaldoussoren, ned.deily, michael.foord, flox
messages: + msg101367
resolution: accepted
2010-03-20 06:01:51ned.deilysetnosy: + ned.deily, flox
messages: + msg101365
2010-03-20 02:53:16michael.foordcreate