nose-devs / nose

nose is nicer testing for python
http://readthedocs.org/docs/nose/en/latest/
1.36k stars 396 forks source link

A change in twisted is resulting in test failures #781

Open Arfrever opened 10 years ago

Arfrever commented 10 years ago

Nose trunk fails some tests with Python 2.6.

======================================================================
FAIL: Collect and run tests in functional/support/twist
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/tmp/nose/functional_tests/test_program.py", line 126, in test_run_support_twist
    assert len(res.failures) == 1
AssertionError: 
-------------------- >> begin captured stdout << ---------------------
test ... ok
test_error ... ERROR
test_fail ... FAIL
test_skip ... FAIL

======================================================================
ERROR: test_error
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 139, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib64/python2.6/site-packages/twisted/internet/utils.py", line 203, in runWithWarningsSuppressed
    reraise(exc_info[1], exc_info[2])
  File "/usr/lib64/python2.6/site-packages/twisted/internet/utils.py", line 199, in runWithWarningsSuppressed
    result = f(*a, **kw)
  File "/tmp/nose/functional_tests/support/twist/test_twisted.py", line 12, in test_error
    raise TypeError("oops, wrong type")
TypeError: oops, wrong type

======================================================================
FAIL: test_fail
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib64/python2.6/site-packages/twisted/internet/defer.py", line 139, in maybeDeferred
    result = f(*args, **kw)
  File "/usr/lib64/python2.6/site-packages/twisted/internet/utils.py", line 203, in runWithWarningsSuppressed
    reraise(exc_info[1], exc_info[2])
  File "/usr/lib64/python2.6/site-packages/twisted/internet/utils.py", line 199, in runWithWarningsSuppressed
    result = f(*a, **kw)
  File "/tmp/nose/functional_tests/support/twist/test_twisted.py", line 9, in test_fail
    self.fail("I failed")
  File "/usr/lib64/python2.6/site-packages/twisted/trial/_synctest.py", line 286, in fail
    raise self.failureException(msg)
FailTest: I failed

======================================================================
FAIL: test_skip
----------------------------------------------------------------------
UnsupportedTrialFeature: ('skip', 'skip me')

----------------------------------------------------------------------
Ran 4 tests in 0.090s

FAILED (failures=2, errors=1)

-----
<unittest._TextTestResult run=4 errors=1 failures=2>

--------------------- >> end captured stdout << ----------------------

----------------------------------------------------------------------
Ran 389 tests in 36.963s

FAILED (failures=1)
jszakmeister commented 10 years ago

Is this because Twisted has been updated? They pass for me with Python 2.6.

Arfrever commented 10 years ago

I have Twisted 13.2.0 installed for Python 2.6 and 2.7.

jszakmeister commented 10 years ago

This appears to because of some change in Twisted. With an older version, things appear to be fine.