diff options
author | Torsten Marek <shlomme@gmail.com> | 2014-07-26 19:09:55 +0200 |
---|---|---|
committer | Torsten Marek <shlomme@gmail.com> | 2014-07-26 19:09:55 +0200 |
commit | f0156c24770d69662b77810b5ea3250f26fbce03 (patch) | |
tree | e8d2b6c6cf716de5551df1cd288f09d40cb06468 /test/functional/invalid_exceptions_raised.txt | |
parent | 727e1c2034da936f8560827e75b33a34983fbd39 (diff) | |
download | pylint-f0156c24770d69662b77810b5ea3250f26fbce03.tar.gz |
Converted more test cases to the new test framework.
Diffstat (limited to 'test/functional/invalid_exceptions_raised.txt')
-rw-r--r-- | test/functional/invalid_exceptions_raised.txt | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/test/functional/invalid_exceptions_raised.txt b/test/functional/invalid_exceptions_raised.txt new file mode 100644 index 0000000..756d92c --- /dev/null +++ b/test/functional/invalid_exceptions_raised.txt @@ -0,0 +1,11 @@ +raising-non-exception:23:bad_case0:Raising a new style class which doesn't inherit from BaseException +nonstandard-exception:23:bad_case0:Exception doesn't inherit from standard "Exception" class +raising-non-exception:27:bad_case1:Raising a new style class which doesn't inherit from BaseException +raising-non-exception:33:bad_case2:Raising a new style class which doesn't inherit from BaseException +nonstandard-exception:33:bad_case2:Exception doesn't inherit from standard "Exception" class +old-raise-syntax:33:bad_case2:Use raise ErrorClass(args) instead of raise ErrorClass, args. +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 |