[Checkins] [zopefoundation/zdaemon] 37cdbe: Add pragma: nocover before os._exit/os.execve

GitHub noreply at github.com
Wed Apr 15 14:56:15 CEST 2015


  Branch: refs/heads/master
  Home:   https://github.com/zopefoundation/zdaemon
  Commit: 37cdbee8e3efe315fa78eae1d4f4566aeb222ff5
      https://github.com/zopefoundation/zdaemon/commit/37cdbee8e3efe315fa78eae1d4f4566aeb222ff5
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2015-04-15 (Wed, 15 Apr 2015)

  Changed paths:
    M src/zdaemon/zdrun.py

  Log Message:
  -----------
  Add pragma: nocover before os._exit/os.execve

Because coverage writes the collected information in an atexit hook, and
those are not run by os._exit()/os.execve().

There's not much code between os.fork() and os._exit()/os.execve().
Some of it is tested; some probably isn't.


  Commit: ef64bddfd29d8b70e2c2a1ac36efb5e410dc4d55
      https://github.com/zopefoundation/zdaemon/commit/ef64bddfd29d8b70e2c2a1ac36efb5e410dc4d55
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2015-04-15 (Wed, 15 Apr 2015)

  Changed paths:
    M src/zdaemon/zdrun.py

  Log Message:
  -----------
  Another pragma: nocover

AFAICT sockets in Python always have a .sendall() method:
https://docs.python.org/2/library/socket.html#socket.socket.sendall


  Commit: 91b4cab61e7986b9af38befa8ae9d493cb87b858
      https://github.com/zopefoundation/zdaemon/commit/91b4cab61e7986b9af38befa8ae9d493cb87b858
  Author: Marius Gedminas <marius at gedmin.as>
  Date:   2015-04-15 (Wed, 15 Apr 2015)

  Changed paths:
    M src/zdaemon/zdrun.py

  Log Message:
  -----------
  Another pragma: nocover

I admire the paranoia of anyone who is prepared for non-string keys in
the 'signal' module's __dict__.


Compare: https://github.com/zopefoundation/zdaemon/compare/3f4220c36c87...91b4cab61e79


More information about the checkins mailing list