nose-devs/nose — Issue #136: Tests fail with 2.3
Author: jpellerin
Created: 2011-12-14 16:01:20+00:00
State: open

What steps will reproduce the problem?
1. Run nosetests or nose/core.py with python 2.3

What is the expected output? What do you see instead?

All tests should pass. However, there are multiple failures and errors:

======================================================================
ERROR: test_load_in_def_order (test_bug105.TestBug105)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nose/trunk/unit_tests/test_bug105.py", line 24, in
test_load_in_def_order
tests = map(fix, testmod)
TypeError: argument 2 to map() must support iteration

-------------------- >> begin captured stdout << ---------------------
test module tests in /nose/trunk/unit_tests/support/bug105

--------------------- >> end captured stdout << ----------------------
======================================================================
ERROR: test_load_nested_generator (test_issue_006.TestIssue006)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nose/trunk/unit_tests/test_issue_006.py", line 17, in
test_load_nested_generator
testcase = iter(testmod).next()
TypeError: iteration over non-sequence

-------------------- >> begin captured stdout << ---------------------
test module tests in /nose/trunk/unit_tests/support/issue006

--------------------- >> end captured stdout << ----------------------
======================================================================
ERROR: test module test_plugins in /nose/trunk/unit_tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nose/trunk/nose/suite.py", line 48, in run
self.setUp()
File "/nose/trunk/nose/suite.py", line 197, in setUp
self.module = _import(self.moduleName, [self.path], self.conf)
File "/nose/trunk/nose/importer.py", line 101, in _import
mod = load_module(fqname, fh, filename, desc)
File "/nose/trunk/unit_tests/test_plugins.py", line 14, in ?
from nose.plugins.doctests import Doctest
ImportError: cannot import name Doctest

======================================================================
ERROR: test_proxy_suite (test_proxy.TestNoseProxy)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nose/trunk/unit_tests/test_proxy.py", line 126, in test_proxy_suite
print list(suite)
TypeError: iteration over non-sequence

======================================================================
ERROR: test module test_twisted in /nose/trunk/unit_tests
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nose/trunk/nose/suite.py", line 48, in run
self.setUp()
File "/nose/trunk/nose/suite.py", line 197, in setUp
self.module = _import(self.moduleName, [self.path], self.conf)
File "/nose/trunk/nose/importer.py", line 101, in _import
mod = load_module(fqname, fh, filename, desc)
File "/nose/trunk/unit_tests/test_twisted.py", line 11
@deferred()
^
SyntaxError: invalid syntax

======================================================================
FAIL: test_testcase_funcs (test_tools.TestTools)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/nose/trunk/unit_tests/test_tools.py", line 145, in test_testcase_funcs
assert 'assert_true' in tc_asserts
AssertionError

-------------------- >> begin captured stdout << ---------------------
['assert_almost_equal', 'assert_almost_equals', 'assert_equal',
'assert_equals', 'assert_not_almost_equal', 'assert_not_almost_equals',
'assert_not_equal', 'assert_not_equals', 'assert_raises']

--------------------- >> end captured stdout << ----------------------
----------------------------------------------------------------------
Ran 81 tests in 2.217s

FAILED (failures=1, errors=5)

Google Code Info:
Issue #: 27
Author: jpelle...@gmail.com
Created On: 2007-01-28T17:20:18.000Z
Closed On: 2007-03-04T15:03:59.000Z