Skip to content

Commit d504072

Browse files
committed
Remove unnecessary try-catch statement in tests.
1 parent 95de39c commit d504072

File tree

1 file changed

+2
-7
lines changed

1 file changed

+2
-7
lines changed

test/mixer_test.py

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -935,13 +935,8 @@ def test_id_getter(self):
935935
self.assertEqual(ch2.id, 2)
936936

937937
def test_subclass(self):
938-
try:
939-
940-
class MyChannel(mixer.Channel):
941-
pass
942-
943-
except Exception:
944-
self.fail("This should not raise an exception.")
938+
class MyChannel(mixer.Channel):
939+
pass
945940

946941

947942
class ChannelInteractiveTest(unittest.TestCase):

0 commit comments

Comments
 (0)