Browse Source

Fix redefinition of DummyEvent

Mike Naberezny 10 năm trước cách đây
mục cha
commit
c8f34d3134
1 tập tin đã thay đổi với 0 bổ sung6 xóa
  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)]