• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

karellen / geventmp / 17340928350

30 Aug 2025 07:15AM UTC coverage: 77.889% (+2.4%) from 75.467%
17340928350

push

github

web-flow
Merge pull request #32 from karellen/geventmp_forkserver

Instrument Multiprocessing forkserver

38 of 71 branches covered (53.52%)

Branch coverage included in aggregate %.

44 of 69 new or added lines in 5 files covered. (63.77%)

21 existing lines in 2 files now uncovered.

272 of 327 relevant lines covered (83.18%)

12.87 hits per line

Source File
Press 'n' to go to next uncovered line, 'b' for previous

92.31
/src/main/python/geventmp/_mp/3/_mp_popen_forkserver.py
1
#   -*- coding: utf-8 -*-
2
#   Copyright 2022 Karellen, Inc. and contributors
3
#
4
#   Licensed under the Apache License, Version 2.0 (the "License");
5
#   you may not use this file except in compliance with the License.
6
#   You may obtain a copy of the License at
7
#
8
#       http://www.apache.org/licenses/LICENSE-2.0
9
#
10
#   Unless required by applicable law or agreed to in writing, software
11
#   distributed under the License is distributed on an "AS IS" BASIS,
12
#   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13
#   See the License for the specific language governing permissions and
14
#   limitations under the License.
15

16
from multiprocessing.popen_forkserver import Popen as _Popen
18✔
17

18
from gevent.os import make_nonblocking
18✔
19

20
__implements__ = ["Popen"]
18✔
21
__target__ = "multiprocessing.popen_forkserver"
18✔
22

23

24
class Popen(_Popen):
18✔
25
    def _launch(self, process_obj):
18✔
26
        self.sentinel = None
18✔
27
        try:
18✔
28
            super()._launch(process_obj)
18✔
29
        finally:
NEW
30
            if self.sentinel is not None:
1!
NEW
31
                make_nonblocking(self.sentinel)
3✔
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc