[IPython-dev] iptest issue

Gerardo Gutierrez muzgash.lists@gmail....
Mon Aug 16 10:38:19 CDT 2010


Hi everyone.

I'm writing some tests for ipythonqt and when I try to run iptest I get this
message:

*muzgash@yggdrasil:~/Projects/GSoC/IPythonQt/ipython/IPython/frontend/qt/nb$
iptest IPython.frontend.qt.nb
Traceback (most recent call last):
File "/usr/local/bin/iptest", line 9, in <module>
load_entry_point('ipython==0.11.alpha1.git', 'console_scripts', 'iptest')()
File
"/usr/local/lib/python2.6/dist-packages/ipython-0.11.alpha1.git-py2.6.egg/IPython/testing/iptest.py",
line 439, in main
run_iptest()
File
"/usr/local/lib/python2.6/dist-packages/ipython-0.11.alpha1.git-py2.6.egg/IPython/testing/iptest.py",
line 375, in run_iptest
TestProgram(argv=argv, plugins=plugins)
File "/usr/lib/pymodules/python2.6/nose/core.py", line 113, in __init__
argv=argv, testRunner=testRunner, testLoader=testLoader)
File "/usr/lib/python2.6/unittest.py", line 816, in __init__
self.parseArgs(argv)
File "/usr/lib/pymodules/python2.6/nose/core.py", line 164, in parseArgs
self.createTests()
File "/usr/lib/pymodules/python2.6/nose/core.py", line 178, in createTests
self.test = self.testLoader.loadTestsFromNames(self.testNames)
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 442, in
loadTestsFromNames
return unittest.TestLoader.loadTestsFromNames(self, names, module)
File "/usr/lib/python2.6/unittest.py", line 613, in loadTestsFromNames
suites = [self.loadTestsFromName(name, module) for name in names]
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 394, in
loadTestsFromName
discovered=discovered)
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 316, in
loadTestsFromModule
tests.extend(self.loadTestsFromDir(module_path))
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 165, in
loadTestsFromDir
entry_path, discovered=True)
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 394, in
loadTestsFromName
discovered=discovered)
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 316, in
loadTestsFromModule
tests.extend(self.loadTestsFromDir(module_path))
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 157, in
loadTestsFromDir
entry_path, discovered=True)
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 394, in
loadTestsFromName
discovered=discovered)
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 305, in
loadTestsFromModule
test_classes + test_funcs)
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 304, in <lambda>
tests = map(lambda t: self.makeTest(t, parent=module),
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 511, in makeTest
return self.loadTestsFromTestClass(obj)
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 475, in
loadTestsFromTestClass
for case in filter(wanted, dir(cls))]
File "/usr/lib/pymodules/python2.6/nose/loader.py", line 521, in makeTest
return MethodTestCase(obj)
File "/usr/lib/pymodules/python2.6/nose/case.py", line 328, in __init__
self.inst = self.cls()
TypeError: __init__() takes no arguments (1 given)*
*
*
I've modified correctly (I think) setupbase.py file:*
*
*
*
*add_package(packages, 'frontend.qt.nb',tests=True)*
*
*
*
*
I don't have a clue of what's hapening.*
*

Thanks in advance.



Best regards.
--
Gerardo Gutiérrez Gutiérrez <http://he1.udea.edu.co/gweb>
Physics student
Universidad de Antioquia
Computational physics and astrophysics group
(FACom<http://urania.udea.edu.co/sites/sites.php>
)
Computational science and development
branch(FACom-dev<http://urania.udea.edu.co/sites/facom-dev/>
)
Linux user #492295
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.scipy.org/pipermail/ipython-dev/attachments/20100816/c00b7a05/attachment.html 


More information about the IPython-dev mailing list