Menu

#2 Failing tests

open
nobody
None
5
2009-03-10
2009-03-10
No

When running the tests with python2.5 I get this failure:

% python2.5 runner.py
...
testProgram_7_2 (test_example_programs.TestExamplePrograms) ... FAIL
testProgram_7_3 (test_example_programs.TestExamplePrograms) ... ok

======================================================================
FAIL: testProgram_7_2 (test_example_programs.TestExamplePrograms)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sabaini/src/Candygram-1.0/test/test_example_programs.py", line 176, in testProgram_7_2
test(self.execFile('program_7.2.py'))
File "/home/sabaini/src/Candygram-1.0/test/test_example_programs.py", line 175, in test
self.assertRaises(cg.ExitError, proc.isAlive)
AssertionError: ExitError not raised

----------------------------------------------------------------------
Ran 9 tests in 6.216s

FAILED (failures=1)

With python2.4 the same test fails, but in a different manner:

% python2.4 runner.py
...
testProgram_7_2 (test_example_programs.TestExamplePrograms) ... FAIL
testProgram_7_3 (test_example_programs.TestExamplePrograms) ... ok

======================================================================
FAIL: testProgram_7_2 (test_example_programs.TestExamplePrograms)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/sabaini/src/Candygram-1.0/test/test_example_programs.py", line 177, in testProgram_7_2
test(self.execFile('program_7.2_alt.py'))
File "/home/sabaini/src/Candygram-1.0/test/test_example_programs.py", line 164, in test
'Process 2 received 123\n' \
AssertionError: 'Process 1 received 123\nLast process received 123\nProcess 2 received 123\n' != 'Process 2 received 123\nProcess 1 received 123\nLast process received 123\n'

----------------------------------------------------------------------
Ran 9 tests in 6.317s

FAILED (failures=1)

Platform:
% uname -a
Linux gram 2.6.27-11-generic #1 SMP Thu Jan 29 19:24:39 UTC 2009 i686 GNU/Linux

(With a stock Ubuntu Python)

Dunno if those test fails are serious...

Discussion


Log in to post a comment.