[Numpy-discussion] np.test() fails on ubuntu karmic

Darren Dale dsdale24 at gmail.com
Sat Jun 20 09:47:52 EDT 2009

I know karmic is in early development, but I wanted to give the numpy devs a
heads up that the test suite will not run on this platform. I've tested
numpy-1.2.1 installed with the package manager, the 1.3.0 release, and the
trunk. I'm not familiar enough with the internals of numpy's testing
framework to to understand the traceback, could anyone comment?


Running unit tests for numpy
NumPy version 1.3.0
NumPy is installed in /usr/local/lib/python2.6/dist-packages/numpy
Python version 2.6.2+ (release26-maint, Jun 19 2009, 15:16:33) [GCC 4.4.0]
nose version 0.11.0
TypeError                                 Traceback (most recent call last)

/home/darren/<ipython console> in <module>()

/usr/local/lib/python2.6/dist-packages/numpy/testing/nosetester.pyc in
test(self, label, verbose, extra_argv, doctests, coverage)
    249                                                doctests, coverage)
    250         from noseclasses import NumpyTestProgram
--> 251         t = NumpyTestProgram(argv=argv, exit=False, plugins=plugins)
    252         return t.result

in __init__(self, module, defaultTest, argv, testRunner, testLoader, env,
config, suite, exit, plugins, addplugins)
    111         unittest.TestProgram.__init__(
    112             self, module=module, defaultTest=defaultTest,
--> 113             argv=argv, testRunner=testRunner, testLoader=testLoader)
    115     def makeConfig(self, env, plugins=None):

/usr/lib/python2.6/unittest.pyc in __init__(self, module, defaultTest, argv,
testRunner, testLoader)
    817         self.progName = os.path.basename(argv[0])
    818         self.parseArgs(argv)
--> 819         self.runTests()
    821     def usageExit(self, msg=None):

/usr/local/lib/python2.6/dist-packages/numpy/testing/noseclasses.pyc in
    298             self.testRunner = plug_runner
--> 300         self.result = self.testRunner.run(self.test)
    301         self.success = self.result.wasSuccessful()
    302         return self.success

TypeError: unbound method run() must be called with TextTestRunner instance
as first argument (got ContextSuite instance instead)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/numpy-discussion/attachments/20090620/3147b4d9/attachment.html>

More information about the NumPy-Discussion mailing list