Commits

Jan-Philip Gehrcke committed 2006f1b

Add test_exitcode_previous_to_join.

Comments (0)

Files changed (1)

test/test_gipc.py

         with raises(TypeError):
             start_process(gevent.sleep, kwargs="peter")
 
+    @mark.skipif('WINDOWS')
+    def test_exitcode_previous_to_join(self):
+        p = start_process(lambda: gevent.sleep(SHORTTIME))
+        assert p.exitcode is None
+        gevent.sleep(3*SHORTTIME)
+        assert p.exitcode == 0
+        p.join()
+
 
 def p_child_a():
     gevent.sleep(SHORTTIME)