nose-devs/nose — Issue #115: Solve Python 3 deprecation warnings in nose code
Author: jpellerin
Created: 2011-12-14 15:59:45+00:00
State: open

What steps will reproduce the problem?
1. Run nose with `python -3`

What is the expected output? What do you see instead?
No deprecation warnings.

What version of the product are you using? On what operating system?
0.11.4

Please provide any additional information below.
A good idea would be to add `-3` parameter to the shebang or enable it from the code.

Example (they may be more):

/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/util.py:14: DeprecationWarning: the compiler package has been removed in Python 3.0
from compiler.consts import CO_GENERATOR
/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/plugins/__init__.py:156: DeprecationWarning: the cPickle module has been removed in Python 3.0
from nose.plugins.manager import *
/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/plugins/prof.py:14: DeprecationWarning: The 'hotshot' module is not supported in 3.x, use the 'profile' module instead.
/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/loader.py:302: DeprecationWarning: the cmp argument is not supported in 3.x
test_classes.sort(lambda a, b: cmp(a.__name__, b.__name__))
/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/loader.py:303: DeprecationWarning: the cmp argument is not supported in 3.x
test_funcs.sort(cmp_lineno)
/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/loader.py:131: DeprecationWarning: the cmp argument is not supported in 3.x
entries.sort(lambda a, b: match_last(a, b, self.config.testMatch))
/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/suite.py:104: DeprecationWarning: callable() not supported in 3.x; use hasattr(o, '__call__')
if callable(tests) and not is_suite:
/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/suite.py:537: DeprecationWarning: callable() not supported in 3.x; use hasattr(o, '__call__')
if callable(tests) or isinstance(tests, unittest.TestSuite):
/Library/Python/2.6/site-packages/nose-0.11.4-py2.6.egg/nose/suite.py:454: DeprecationWarning: callable() not supported in 3.x; use hasattr(o, '__call__')
if callable(tests) or isinstance(tests, unittest.TestSuite):

Google Code Info:
Issue #: 363
Author: sorin.sb...@gmail.com
Created On: 2010-09-15T10:14:07.000Z
Closed On: 2011-03-19T05:37:36.000Z