[Buildbot-commits] [buildbot/buildbot] 9916b9: Only apply monkeypatches once

GitHub noreply at github.com
Sun Nov 10 15:46:29 UTC 2013


  Branch: refs/heads/master
  Home:   https://github.com/buildbot/buildbot
  Commit: 9916b9abc4b2c5a85c78ba809e76de0677907de0
      https://github.com/buildbot/buildbot/commit/9916b9abc4b2c5a85c78ba809e76de0677907de0
  Author: Dustin J. Mitchell <dustin at mozilla.com>
  Date:   2013-11-10 (Sun, 10 Nov 2013)

  Changed paths:
    M master/buildbot/monkeypatches/__init__.py
    M master/buildbot/monkeypatches/servicechecks.py
    M master/buildbot/monkeypatches/testcase_patch.py
    M master/buildbot/monkeypatches/testcase_synctest.py

  Log Message:
  -----------
  Only apply monkeypatches once

Use a decorator to ensure each monkeypatch is only installed once, even
in the face of multiple integration tests that call
'monkeypatches.patch()'.  This avoids very deep recursion when running
tests repeatedly in the same interpreter.

Also, clean up the test-only monkeypatches to follow the same convention
as the production monkeypatches.


  Commit: faa8c2f6ddb3fb249885e39119502608e42d3a29
      https://github.com/buildbot/buildbot/commit/faa8c2f6ddb3fb249885e39119502608e42d3a29
  Author: Dustin J. Mitchell <dustin at mozilla.com>
  Date:   2013-11-10 (Sun, 10 Nov 2013)

  Changed paths:
    M master/buildbot/monkeypatches/__init__.py
    M master/buildbot/monkeypatches/servicechecks.py
    M master/buildbot/monkeypatches/testcase_patch.py
    M master/buildbot/monkeypatches/testcase_synctest.py

  Log Message:
  -----------
  Merge branch 'patch-only-once' of git://github.com/djmitche/buildbot

+autopep8 changes


Compare: https://github.com/buildbot/buildbot/compare/134be6ba3b8e...faa8c2f6ddb3


More information about the Commits mailing list