summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcpopa <devnull@localhost>2014-01-10 16:54:39 +0200
committercpopa <devnull@localhost>2014-01-10 16:54:39 +0200
commitd24ae054ee9f3ac92f05a5ee3eddd8b9e86dcb29 (patch)
tree53c969e3c5ac585416ee926a36d6708301767002
parent09c1f596b312b7ca11e1390a584408f119393421 (diff)
downloadpylint-d24ae054ee9f3ac92f05a5ee3eddd8b9e86dcb29.tar.gz
Improve tests by adding new test cases.
-rw-r--r--test/input/func_bad_exception_context_py30.py4
-rw-r--r--test/messages/func_bad_exception_context_py30.txt3
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