diff options
| author | cpopa <devnull@localhost> | 2014-01-10 16:54:39 +0200 |
|---|---|---|
| committer | cpopa <devnull@localhost> | 2014-01-10 16:54:39 +0200 |
| commit | d24ae054ee9f3ac92f05a5ee3eddd8b9e86dcb29 (patch) | |
| tree | 53c969e3c5ac585416ee926a36d6708301767002 /test | |
| parent | 09c1f596b312b7ca11e1390a584408f119393421 (diff) | |
| download | pylint-d24ae054ee9f3ac92f05a5ee3eddd8b9e86dcb29.tar.gz | |
Improve tests by adding new test cases.
Diffstat (limited to 'test')
| -rw-r--r-- | test/input/func_bad_exception_context_py30.py | 4 | ||||
| -rw-r--r-- | test/messages/func_bad_exception_context_py30.txt | 3 |
2 files changed, 6 insertions, 1 deletions
diff --git a/test/input/func_bad_exception_context_py30.py b/test/input/func_bad_exception_context_py30.py index df4df20..d3ab127 100644 --- a/test/input/func_bad_exception_context_py30.py +++ b/test/input/func_bad_exception_context_py30.py @@ -17,3 +17,7 @@ def test(): raise IndexError from object() raise IndexError from ExceptionSubclass raise IndexError from socket.error + raise IndexError() from None + raise IndexError() from ZeroDivisionError + raise IndexError() from ZeroDivisionError() + raise IndexError() from object() diff --git a/test/messages/func_bad_exception_context_py30.txt b/test/messages/func_bad_exception_context_py30.txt index 06e6525..241195d 100644 --- a/test/messages/func_bad_exception_context_py30.txt +++ b/test/messages/func_bad_exception_context_py30.txt @@ -1,2 +1,3 @@ E: 14:test: Exception context set to something which is not an exception, nor None
-E: 17:test: Exception context set to something which is not an exception, nor None
\ No newline at end of file +E: 17:test: Exception context set to something which is not an exception, nor None
+E: 23:test: Exception context set to something which is not an exception, nor None
\ No newline at end of file |
