From c8f34d3134f533c7319f4d77fc8777e0694d7549 Mon Sep 17 00:00:00 2001 From: Mike Naberezny Date: Fri, 5 Sep 2014 17:47:04 -0700 Subject: [PATCH] Fix redefinition of DummyEvent --- supervisor/tests/test_events.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/supervisor/tests/test_events.py b/supervisor/tests/test_events.py index d3e9a101a..8b26cb5ae 100644 --- a/supervisor/tests/test_events.py +++ b/supervisor/tests/test_events.py @@ -31,8 +31,6 @@ def test_notify_true(self): L = [] def callback(event): L.append(1) - class DummyEvent: - pass events.callbacks[:] = [(DummyEvent, callback)] events.notify(DummyEvent()) self.assertEqual(L, [1]) @@ -42,8 +40,6 @@ def test_notify_false(self): L = [] def callback(event): L.append(1) - class DummyEvent: - pass class AnotherEvent: pass events.callbacks[:] = [(AnotherEvent, callback)] @@ -55,8 +51,6 @@ def test_notify_via_subclass(self): L = [] def callback(event): L.append(1) - class DummyEvent: - pass class ASubclassEvent(DummyEvent): pass events.callbacks[:] = [(DummyEvent, callback)]