Author zvezdan
Recipients mark.dickinson, ronaldoussoren, zvezdan
Date 2010-02-05.19:39:54
SpamBayes Score 6.6258e-05
Marked as misclassified No
Message-id <1265398796.39.0.541074930033.issue7807@psf.upfronthosting.co.za>
In-reply-to
Content
This seems to be a 64-bit issue.

The 32-bit build passes this test.

>>> echo ${TESTPYTHON} ${TESTPROG} ${TESTOPTS}
/Users/zvezdan/opt/snapshot/2.6.5/bin/python -E -tt /Users/zvezdan/opt/snapshot/2.6.5/lib/python2.6/test/test_macostools.py -l -uall

>>> ${TESTPYTHON} ${TESTPROG} ${TESTOPTS}
test_copy (__main__.TestMacostools) ... ok
test_mkalias (__main__.TestMacostools) ... ok
test_mkalias_relative (__main__.TestMacostools) ... ok
test_touched (__main__.TestMacostools) ... ok

----------------------------------------------------------------------
Ran 4 tests in 0.013s

OK

When 64-bit build is used:

>>> echo ${TESTPYTHON} ${TESTPROG} ${TESTOPTS}
/Users/zvezdan/opt/snapshot/2.6.5-64/bin/python -E -tt /Users/zvezdan/opt/snapshot/2.6.5-64/lib/python2.6/test/test_macostools.py -l -uall


>>> ${TESTPYTHON} ${TESTPROG} ${TESTOPTS}
test_copy (__main__.TestMacostools) ... ERROR
test_mkalias (__main__.TestMacostools) ... ERROR
test_mkalias_relative (__main__.TestMacostools) ... ERROR
test_touched (__main__.TestMacostools) ... ok

======================================================================
ERROR: test_copy (__main__.TestMacostools)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/zvezdan/opt/snapshot/2.6.5-64/lib/python2.6/test/test_macostools.py", line 65, in test_copy
    macostools.copy(test_support.TESTFN, TESTFN2)
  File "/Users/zvezdan/opt/snapshot/2.6.5-64/lib/python2.6/plat-mac/macostools.py", line 114, in copy
    srcfss = File.FSSpec(src)
AttributeError: 'module' object has no attribute 'FSSpec'

======================================================================
ERROR: test_mkalias (__main__.TestMacostools)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/zvezdan/opt/snapshot/2.6.5-64/lib/python2.6/test/test_macostools.py", line 73, in test_mkalias
    macostools.mkalias(test_support.TESTFN, TESTFN2)
  File "/Users/zvezdan/opt/snapshot/2.6.5-64/lib/python2.6/plat-mac/macostools.py", line 46, in mkalias
    dstfsr, dstfss = Res.FSCreateResourceFile(dstdirfsr, unicode(dstname),
AttributeError: 'module' object has no attribute 'FSCreateResourceFile'

======================================================================
ERROR: test_mkalias_relative (__main__.TestMacostools)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/zvezdan/opt/snapshot/2.6.5-64/lib/python2.6/test/test_macostools.py", line 88, in test_mkalias_relative
    macostools.mkalias(test_support.TESTFN, TESTFN2, sys.prefix)
  File "/Users/zvezdan/opt/snapshot/2.6.5-64/lib/python2.6/plat-mac/macostools.py", line 46, in mkalias
    dstfsr, dstfss = Res.FSCreateResourceFile(dstdirfsr, unicode(dstname),
AttributeError: 'module' object has no attribute 'FSCreateResourceFile'

----------------------------------------------------------------------
Ran 4 tests in 0.016s

FAILED (errors=3)
Traceback (most recent call last):
  File "/Users/zvezdan/opt/snapshot/2.6.5-64/lib/python2.6/test/test_macostools.py", line 101, in <module>
    test_main()
  File "/Users/zvezdan/opt/snapshot/2.6.5-64/lib/python2.6/test/test_macostools.py", line 97, in test_main
    test_support.run_unittest(TestMacostools)
  File "/Users/zvezdan/opt/snapshot/2.6.5-64/lib/python2.6/test/test_support.py", line 734, in run_unittest
    _run_suite(suite)
  File "/Users/zvezdan/opt/snapshot/2.6.5-64/lib/python2.6/test/test_support.py", line 717, in _run_suite
    raise TestFailed(err)
test.test_support.TestFailed: multiple errors occurred
History
Date User Action Args
2010-02-05 19:39:56zvezdansetrecipients: + zvezdan, ronaldoussoren, mark.dickinson
2010-02-05 19:39:56zvezdansetmessageid: <1265398796.39.0.541074930033.issue7807@psf.upfronthosting.co.za>
2010-02-05 19:39:55zvezdanlinkissue7807 messages
2010-02-05 19:39:54zvezdancreate