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

Darren Dale dsdale24@gmail....
Sat Jun 20 08:47:52 CDT 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?

Thanks,
Darren

np.test()
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
    253

/usr/local/lib/python2.6/dist-packages/nose-0.11.0.dev_r0-py2.6.egg/nose/core.pyc
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)
    114
    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()
    820
    821     def usageExit(self, msg=None):

/usr/local/lib/python2.6/dist-packages/numpy/testing/noseclasses.pyc in
runTests(self)
    298             self.testRunner = plug_runner
    299
--> 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.scipy.org/pipermail/numpy-discussion/attachments/20090620/3147b4d9/attachment.html 


More information about the Numpy-discussion mailing list