From 781f757b62fb37ce3c5d7f962277799ef1b3b7ca Mon Sep 17 00:00:00 2001 From: Torsten Marek Date: Wed, 30 Jul 2014 22:07:39 +0200 Subject: Remove old testcase that has already been converted. --- test/input/func_catching_non_exception.py | 56 --------------------------- test/messages/func_catching_non_exception.txt | 3 -- 2 files changed, 59 deletions(-) delete mode 100644 test/input/func_catching_non_exception.py delete mode 100644 test/messages/func_catching_non_exception.txt 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 -- cgit v1.2.1