Skip to content

Commit

Permalink
Fix redefinition of DummyEvent
Browse files Browse the repository at this point in the history
  • Loading branch information
mnaberez committed Sep 7, 2014
1 parent 4ad7283 commit c8f34d3
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions supervisor/tests/test_events.py
Original file line number Diff line number Diff line change
Expand Up @@ -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])
Expand All @@ -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)]
Expand All @@ -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)]
Expand Down

0 comments on commit c8f34d3

Please sign in to comment.