Mac OSX Fink Python 2.6 test failure

Bug #329837 reported by goatbar
2
Affects Status Importance Assigned to Milestone
IPython
Incomplete
Low
Unassigned

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?

Thanks,
-kurt

The error can be produced like this:

fink --maintainer rebuild ipython-py26

"~/.ipython/ipy_user_conf.py" 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>
    iptest.main()
  File "/sw/src/fink.build/ipython-py26-0.9.1-1/ipython-0.9.1/IPython/testing/iptest.py", line 53, in main
    TestProgram(argv=argv,plugins=plugins)
  File "/sw/lib/python2.6/site-packages/nose/core.py", line 219, in __init__
    argv=argv, testRunner=testRunner, testLoader=testLoader)
  File "/sw/lib/python2.6/unittest.py", line 816, in __init__
    self.parseArgs(argv)
  File "/sw/lib/python2.6/site-packages/nose/core.py", line 270, in parseArgs
    self.createTests()
  File "/sw/lib/python2.6/site-packages/nose/core.py", line 284, in createTests
    self.test = self.testLoader.loadTestsFromNames(self.testNames)
  File "/sw/lib/python2.6/site-packages/nose/loader.py", line 422, in loadTestsFromNames
    return unittest.TestLoader.loadTestsFromNames(self, names, module)
  File "/sw/lib/python2.6/unittest.py", line 613, in loadTestsFromNames
    suites = [self.loadTestsFromName(name, module) for name in names]
  File "/sw/lib/python2.6/site-packages/nose/loader.py", line 377, in loadTestsFromName
    module, discovered=discovered)
  File "/sw/lib/python2.6/site-packages/nose/loader.py", line 296, in loadTestsFromModule
    tests.extend(self.loadTestsFromDir(path))
  File "/sw/lib/python2.6/site-packages/nose/loader.py", line 157, in loadTestsFromDir
    entry_path, discovered=True)
  File "/sw/lib/python2.6/site-packages/nose/loader.py", line 377, in loadTestsFromName
    module, discovered=discovered)
  File "/sw/lib/python2.6/site-packages/nose/loader.py", line 311, in loadTestsFromModule
    return self.suiteClass(ContextList(tests, context=module))
  File "/sw/lib/python2.6/site-packages/nose/suite.py", line 332, in __call__
    return self.makeSuite(tests, context)
  File "/sw/lib/python2.6/site-packages/nose/suite.py", line 377, in makeSuite
    self.context.setdefault(suite, []).append(context)
TypeError: unhashable type: 'ContextSuite'

Revision history for this message
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 ipy_user_conf.py 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.

Thanks!

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

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.