andreikop / enki

A text editor for programmers
http://enki-editor.org
GNU General Public License v2.0
161 stars 38 forks source link

test_open_file silent fails #207

Closed bjones1 closed 10 years ago

bjones1 commented 10 years ago

Per PR#205, running test_open_file on Windows reveals silent failures: an exception occurs, but the test still passes.

C:\Users\bjones\Documents\enki_all\enki\tests\test_core>python -m unittest -v test_open_file
test_1 (test_open_file.Loop) ... Traceback (most recent call last):
  File "test_open_file.py", line 72, in func
AttributeError: 'NoneType' object has no attribute 'addAction'
ok
test_2 (test_open_file.Loop) ... Traceback (most recent call last):
  File "test_open_file.py", line 85, in func
AttributeError: 'NoneType' object has no attribute 'setCurrentDocument'
ok
test_1 (test_open_file.OpenFail) ... ok
test_2 (test_open_file.OpenFail) ... ok
test_3 (test_open_file.OpenFail) ... ok
test_4 (test_open_file.OpenFail) ... ok
test_1 (test_open_file.Test) ... ok

----------------------------------------------------------------------
Ran 7 tests in 40.429s

OK
andreikop commented 10 years ago

Temporary test was removed