From 7b4495cfc3b88842fdaaf7d90882382ad8ca6651 Mon Sep 17 00:00:00 2001
From: Jason Madden <jamadden@gmail.com>
Date: Thu, 29 Nov 2018 07:02:39 -0600
Subject: [PATCH] loop.child is not defined on win32; take it out of ILoop
 there too.

---
 src/gevent/_interfaces.py     | 13 ++++++++-----
 src/gevent/tests/test__hub.py |  2 +-
 2 files changed, 9 insertions(+), 6 deletions(-)

diff --git a/src/gevent/_interfaces.py b/src/gevent/_interfaces.py
index c19c8d0a..8ee20209 100644
--- a/src/gevent/_interfaces.py
+++ b/src/gevent/_interfaces.py
@@ -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):
         """
diff --git a/src/gevent/tests/test__hub.py b/src/gevent/tests/test__hub.py
index 1dc8995b..44962020 100644
--- a/src/gevent/tests/test__hub.py
+++ b/src/gevent/tests/test__hub.py
@@ -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
-- 
2.30.9