瀏覽代碼

Fix redefinition of DummyEvent

Mike Naberezny 10 年之前
父節點
當前提交
c8f34d3134
共有 1 個文件被更改,包括 0 次插入6 次删除
  1. 0 6
      supervisor/tests/test_events.py

+ 0 - 6
supervisor/tests/test_events.py

@@ -31,8 +31,6 @@ class EventSubscriptionNotificationTests(unittest.TestCase):
         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 @@ class EventSubscriptionNotificationTests(unittest.TestCase):
         L = []
         def callback(event):
             L.append(1)
-        class DummyEvent:
-            pass
         class AnotherEvent:
             pass
         events.callbacks[:] = [(AnotherEvent, callback)]
@@ -55,8 +51,6 @@ class EventSubscriptionNotificationTests(unittest.TestCase):
         L = []
         def callback(event):
             L.append(1)
-        class DummyEvent:
-            pass
         class ASubclassEvent(DummyEvent):
             pass
         events.callbacks[:] = [(DummyEvent, callback)]