Skip to content

Commit

Permalink
support TimerWatcher.again
Browse files Browse the repository at this point in the history
it doesn't seem possible to ignore test_ares_timeout.py, so fix it
  • Loading branch information
Thomas Grainger committed Jun 28, 2015
1 parent ac2cc88 commit 045b962
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
3 changes: 1 addition & 2 deletions known_failures.patch
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
--- known_failures.py 2015-06-28 14:33:12.270911380 +0100
+++ known_failures.py 2015-06-28 14:33:04.303661343 +0100
@@ -107,6 +107,24 @@
@@ -107,6 +107,23 @@
FLAKY test__socket.py
'''.strip().split()

Expand All @@ -19,7 +19,6 @@
+ test__example_portforwarder.py
+ test__example_udp_server.py
+ test__environ.py
+ test_ares_timeout.py
+'''.strip().split()
+

Expand Down
4 changes: 4 additions & 0 deletions tulipcore.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,10 @@ def _invoke(self):
self.active = False
super()._invoke()

def again(self, callback, *args, **kwargs):
self.stop()
self.start(callback=callback, *args)


class IoWatcher(Watcher):
def __init__(self, loop, fd, events, ref=True, priority=None):
Expand Down

0 comments on commit 045b962

Please sign in to comment.