Mac OSX Fink Python 2.6 test failure

Bug #329837 reported by goatbar on 2009-02-15
Affects Status Importance Assigned to Milestone

Bug Description

I'm taking over packaging of ipython for Fink on MacOSX. I've added the test suite to the build system and it works on python 2.5. On python 2.6, I'm seing this test failure. In my limited use of ipython with 2.6 it works, but my coverage is very small.

This is on Mac OSX 10.5.6 and ipython 0.9.1.

Also, is there a way to not create a .ipython directory when running the test as nobody?


The error can be produced like this:

fink --maintainer rebuild ipython-py26

"~/.ipython/" config file. Please take a look at the file
if some of the new settings bother you.

Please press <RETURN> to start IPython.
Traceback (most recent call last):
  File "scripts/iptest", line 8, in <module>
  File "/sw/src/", line 53, in main
  File "/sw/lib/python2.6/site-packages/nose/", line 219, in __init__
    argv=argv, testRunner=testRunner, testLoader=testLoader)
  File "/sw/lib/python2.6/", line 816, in __init__
  File "/sw/lib/python2.6/site-packages/nose/", line 270, in parseArgs
  File "/sw/lib/python2.6/site-packages/nose/", line 284, in createTests
    self.test = self.testLoader.loadTestsFromNames(self.testNames)
  File "/sw/lib/python2.6/site-packages/nose/", line 422, in loadTestsFromNames
    return unittest.TestLoader.loadTestsFromNames(self, names, module)
  File "/sw/lib/python2.6/", line 613, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/sw/lib/python2.6/site-packages/nose/", line 377, in loadTestsFromName
    module, discovered=discovered)
  File "/sw/lib/python2.6/site-packages/nose/", line 296, in loadTestsFromModule
  File "/sw/lib/python2.6/site-packages/nose/", line 157, in loadTestsFromDir
    entry_path, discovered=True)
  File "/sw/lib/python2.6/site-packages/nose/", line 377, in loadTestsFromName
    module, discovered=discovered)
  File "/sw/lib/python2.6/site-packages/nose/", line 311, in loadTestsFromModule
    return self.suiteClass(ContextList(tests, context=module))
  File "/sw/lib/python2.6/site-packages/nose/", line 332, in __call__
    return self.makeSuite(tests, context)
  File "/sw/lib/python2.6/site-packages/nose/", line 377, in makeSuite
    self.context.setdefault(suite, []).append(context)
TypeError: unhashable type: 'ContextSuite'

Brian Granger (ellisonbg) wrote :

I am not exactly clear on how this can be reproduced. You mention a couple different things:

1. Not creating the .ipython dir during testing. We pretty much need to create it.

2. Something about the file

3. Something that is going wrong with IPython is started.

From the information you give it is hard to untangle these 3 things. Can you give us more details.


Changed in ipython:
importance: Undecided → Low
status: New → Incomplete
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers