summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorClaudiu Popa <cpopa@cloudbasesolutions.com>2014-11-15 16:12:51 +0200
committerClaudiu Popa <cpopa@cloudbasesolutions.com>2014-11-15 16:12:51 +0200
commit86f48863881a59e93ee727f529edb6ef6a28e0d3 (patch)
tree7a56adead854750c17d8f42a43b70dd9ea61b2ed
parent617eefc27ce2e751a95cbdcd9439b4821608ea28 (diff)
downloadpylint-86f48863881a59e93ee727f529edb6ef6a28e0d3.tar.gz
Update the test message for raising-bad-type.
-rw-r--r--test/functional/invalid_exceptions_raised.txt4
-rw-r--r--test/messages/func_bad_assigment_to_exception_var.txt6
2 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/invalid_exceptions_raised.txt b/test/functional/invalid_exceptions_raised.txt
index 54ea0f4..b4e8716 100644
--- a/test/functional/invalid_exceptions_raised.txt
+++ b/test/functional/invalid_exceptions_raised.txt
@@ -7,5 +7,5 @@ raising-non-exception:33:bad_case2:Raising a new style class which doesn't inher
raising-non-exception:37:bad_case3:Raising a new style class which doesn't inherit from BaseException
notimplemented-raised:42:bad_case4:NotImplemented raised - should raise NotImplementedError
old-raise-syntax:42:bad_case4:Use raise ErrorClass(args) instead of raise ErrorClass, args.
-raising-bad-type:46:bad_case5:Raising int while only classes, instances or string are allowed
-raising-bad-type:50:base_case6:Raising NoneType while only classes, instances or string are allowed
+raising-bad-type:46:bad_case5:Raising int while only classes or instances are allowed
+raising-bad-type:50:base_case6:Raising NoneType while only classes or instances are allowed
diff --git a/test/messages/func_bad_assigment_to_exception_var.txt b/test/messages/func_bad_assigment_to_exception_var.txt
index 3d67d7a..119fbe2 100644
--- a/test/messages/func_bad_assigment_to_exception_var.txt
+++ b/test/messages/func_bad_assigment_to_exception_var.txt
@@ -1,5 +1,5 @@
-E: 11: Raising int while only classes, instances or string are allowed
-E: 20:func: Raising NoneType while only classes, instances or string are allowed
-E: 30: Raising NoneType while only classes, instances or string are allowed
+E: 11: Raising int while only classes or instances are allowed
+E: 20:func: Raising NoneType while only classes or instances are allowed
+E: 30: Raising NoneType while only classes or instances are allowed
W: 12: Catching too general exception Exception