diff options
author | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2014-11-15 16:12:51 +0200 |
---|---|---|
committer | Claudiu Popa <cpopa@cloudbasesolutions.com> | 2014-11-15 16:12:51 +0200 |
commit | 31e9fb27ba204e521fcb7931665dd535890fa481 (patch) | |
tree | 9aae1620764379074127f2a48f53912575ef3854 | |
parent | 5975c431907d9f47ed4765546b2b9ec91bb01188 (diff) | |
download | pylint-git-31e9fb27ba204e521fcb7931665dd535890fa481.tar.gz |
Update the test message for raising-bad-type.
-rw-r--r-- | test/functional/invalid_exceptions_raised.txt | 4 | ||||
-rw-r--r-- | test/messages/func_bad_assigment_to_exception_var.txt | 6 |
2 files changed, 5 insertions, 5 deletions
diff --git a/test/functional/invalid_exceptions_raised.txt b/test/functional/invalid_exceptions_raised.txt index 54ea0f4d4..b4e8716ab 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 3d67d7a1e..119fbe2d4 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 |