Commit 7b4495cf authored by Jason Madden's avatar Jason Madden

loop.child is not defined on win32; take it out of ILoop there too.

parent 42b4eea0
......@@ -14,6 +14,7 @@ from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
import sys
from gevent._util import Interface
from gevent._util import Attribute
......@@ -160,12 +161,14 @@ class ILoop(Interface):
it will be removed in the future.
"""
def child(pid, trace=0, ref=True):
"""
Create a watcher that fires for events on the child with process ID *pid*.
if sys.platform != "win32":
This is platform specific.
"""
def child(pid, trace=0, ref=True):
"""
Create a watcher that fires for events on the child with process ID *pid*.
This is platform specific and not available on Windows.
"""
def stat(path, interval=0.0, ref=True, priority=None):
"""
......
......@@ -212,7 +212,7 @@ class TestPeriodicMonitoringThread(greentest.TestCase):
# We must make sure we have switched greenlets at least once,
# otherwise we can't detect a failure.
gevent.sleep(0.0001)
gevent.sleep(hub.loop.approx_timer_resolution)
assert hub.exception_stream is stream
try:
time.sleep(0.3) # Thrice the default
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment