From d24ae054ee9f3ac92f05a5ee3eddd8b9e86dcb29 Mon Sep 17 00:00:00 2001 From: cpopa Date: Fri, 10 Jan 2014 16:54:39 +0200 Subject: Improve tests by adding new test cases. --- test/input/func_bad_exception_context_py30.py | 4 ++++ test/messages/func_bad_exception_context_py30.txt | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) 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 -- cgit v1.2.1