summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTorsten Marek <shlomme@gmail.com>2014-07-30 22:07:39 +0200
committerTorsten Marek <shlomme@gmail.com>2014-07-30 22:07:39 +0200
commit781f757b62fb37ce3c5d7f962277799ef1b3b7ca (patch)
tree82f948093c3dc92a6007203ecba91cd025b31504
parent8b8133c73f757867ba14884ae08237617ef555fa (diff)
downloadpylint-781f757b62fb37ce3c5d7f962277799ef1b3b7ca.tar.gz
Remove old testcase that has already been converted.
-rw-r--r--test/input/func_catching_non_exception.py56
-rw-r--r--test/messages/func_catching_non_exception.txt3
2 files changed, 0 insertions, 59 deletions
diff --git a/test/input/func_catching_non_exception.py b/test/input/func_catching_non_exception.py
deleted file mode 100644
index d8e0e2d..0000000
--- a/test/input/func_catching_non_exception.py
+++ /dev/null
@@ -1,56 +0,0 @@
-"""test non-exceptions catched
-"""
-import socket
-
-__revision__ = 1
-
-class MyException(object):
- """ custom 'exception' """
- pass
-
-class MySecondException(object):
- """ custom 'exception' """
- pass
-
-class MyGoodException(Exception):
- """ custom 'exception' """
- pass
-
-class MySecondGoodException(MyGoodException):
- """ custom 'exception' """
- pass
-
-class SkipException(socket.error):
- """ This gave false positives for Python 2,
- but not for Python 3, due to exception
- hierarchy rewrite.
- """
-
-class SecondSkipException(SkipException):
- """ This too shouldn't give false
- positives. """
-
-try:
- 1 + 1
-except MyException:
- print "oups"
-
-try:
- 1 + 2
-except (MyException, MySecondException):
- print "oups"
-
-try:
- 1 + 3
-except MyGoodException:
- print "should work"
-
-try:
- 1 + 3
-except (MyGoodException, MySecondGoodException):
- print "should work"
-
-try:
- 1 + 3
-except (SkipException, SecondSkipException):
- print "should work"
diff --git a/test/messages/func_catching_non_exception.txt b/test/messages/func_catching_non_exception.txt
deleted file mode 100644
index 19f22ab..0000000
--- a/test/messages/func_catching_non_exception.txt
+++ /dev/null
@@ -1,3 +0,0 @@
-E: 35: Catching an exception which doesn't inherit from BaseException: MyException
-E: 40: Catching an exception which doesn't inherit from BaseException: MyException
-E: 40: Catching an exception which doesn't inherit from BaseException: MySecondException \ No newline at end of file