mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-01-07 11:40:01 -08:00
a528f052b9
* Bump cherrypy from 18.9.0 to 18.10.0 Bumps [cherrypy](https://github.com/cherrypy/cherrypy) from 18.9.0 to 18.10.0. - [Changelog](https://github.com/cherrypy/cherrypy/blob/main/CHANGES.rst) - [Commits](https://github.com/cherrypy/cherrypy/compare/v18.9.0...v18.10.0) --- updated-dependencies: - dependency-name: cherrypy dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> * Update cherrypy==18.10.0 --------- Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> [skip ci]
23 lines
394 B
Python
23 lines
394 B
Python
"""Regression test suite for CherryPy."""
|
|
|
|
import os
|
|
import sys
|
|
|
|
|
|
def newexit():
|
|
os._exit(1)
|
|
|
|
|
|
def setup():
|
|
# We want to monkey patch sys.exit so that we can get some
|
|
# information about where exit is being called.
|
|
newexit._old = sys.exit
|
|
sys.exit = newexit
|
|
|
|
|
|
def teardown():
|
|
try:
|
|
sys.exit = sys.exit._old
|
|
except AttributeError:
|
|
sys.exit = sys._exit
|