bobber6467 / python-nose

Automatically exported from code.google.com/p/python-nose
0 stars 0 forks source link

unittest fails when runs over nose 0.11.3 #420

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a project in PyCharm
2. Add /nose/ module to it
3. Run unittest on the root of the project

/System/Library/Frameworks/Python.framework/Versions/2.6/bin/python 
/Applications/PyCharm 1.2.1.app/helpers/pycharm/utrunner.py 
/Users/ssbarnea/p4/boxer/ssbarnea-pro/depot/centralized_alf/dev/alfa/whole_syste
m/tools/python_scripts/alf/tendo/ true
Testing started at 12:42 ...
/System/Library/Frameworks/Python.framework/Versions/2.6/Extras/lib/python/twist
ed/internet/_sslverify.py:5: DeprecationWarning: the md5 module is deprecated; 
use hashlib instead
  import itertools, md5
Traceback (most recent call last):
  File "/Applications/PyCharm 1.2.1.app/helpers/pycharm/utrunner.py", line 123, in <module>
    all.addTests(testLoader.loadTestsFromModule(module))
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 559, in loadTestsFromModule
    tests.append(self.loadTestsFromTestCase(obj))
  File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/unittest.py", line 550, in loadTestsFromTestCase
    return self.suiteClass(map(testCaseClass, testCaseNames))
TypeError: __init__() takes at least 3 arguments (2 given)
Empty test suite.

Process finished with exit code 1

Original issue reported on code.google.com by sorin.sb...@gmail.com on 16 May 2011 at 10:06

GoogleCodeExporter commented 8 years ago
A few reasons why I'm closing this as invalid:

1) 0.11.3 is a very old release,
2) nose's own tests are meant to be run with selftest.py/tox not bare unittest,
3) The error appears to be in pycharm's test runner not in nose.

Original comment by jpelle...@gmail.com on 16 May 2011 at 6:24

GoogleCodeExporter commented 8 years ago
It is true that this is a bug in pycharm, they confirmed and solved it - next 
release will solve this.

Also 0.11.3 is the *latest* release from 
http://code.google.com/p/python-nose/downloads/list - so there are two 
alternatives: remove it from there and provide another link or upload a newer 
version. Thanks.

Original comment by sorin.sb...@gmail.com on 16 May 2011 at 7:44