diff options
| author | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
|---|---|---|
| committer | root <root@alpha.trunkmasters.com> | 2026-06-04 16:24:49 -0500 |
| commit | a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7 (patch) | |
| tree | 0c52bbae1c242fbc296bd650fcd1167685f81492 /dev-python/pytest-system-statistics/files | |
| parent | bfd9c39e4712ebdb442d4ca0673061faed1e70e1 (diff) | |
| download | baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.gz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.tar.xz baldeagleos-repo-a3ceca1b4c0d9bdb550dc23f06ffbb5a8e033bc7.zip | |
Adding metadata
Diffstat (limited to 'dev-python/pytest-system-statistics/files')
| -rw-r--r-- | dev-python/pytest-system-statistics/files/pytest-system-statistics-1.0.2-loader.patch | 43 |
1 files changed, 0 insertions, 43 deletions
diff --git a/dev-python/pytest-system-statistics/files/pytest-system-statistics-1.0.2-loader.patch b/dev-python/pytest-system-statistics/files/pytest-system-statistics-1.0.2-loader.patch deleted file mode 100644 index 6d4751759617..000000000000 --- a/dev-python/pytest-system-statistics/files/pytest-system-statistics-1.0.2-loader.patch +++ /dev/null @@ -1,43 +0,0 @@ -diff --git a/src/pytestsysstats/plugin.py b/src/pytestsysstats/plugin.py -index 4009858..3067f73 100644 ---- a/src/pytestsysstats/plugin.py -+++ b/src/pytestsysstats/plugin.py -@@ -231,20 +231,17 @@ def pytest_sessionstart(session: "Session") -> None: - ): - stats_processes_instance = StatsProcesses() - stats_processes_instance.add("Test Suite Run", os.getpid()) -- else: -- stats_processes_instance = None -+ session.config.pluginmanager.register(stats_processes_instance, "sysstats-processes") - -- session.config.pluginmanager.register(stats_processes_instance, "sysstats-processes") -- -- terminalreporter = session.config.pluginmanager.getplugin( -- "terminalreporter" -- ) # type: "TerminalReporter" -- sys_stats_reporter = SystemStatsReporter( -- config=session.config, -- stats_processes=stats_processes_instance, -- terminalreporter=terminalreporter, -- ) -- session.config.pluginmanager.register(sys_stats_reporter, "sysstats-reporter") -+ terminalreporter = session.config.pluginmanager.getplugin( -+ "terminalreporter" -+ ) # type: "TerminalReporter" -+ sys_stats_reporter = SystemStatsReporter( -+ config=session.config, -+ stats_processes=stats_processes_instance, -+ terminalreporter=terminalreporter, -+ ) -+ session.config.pluginmanager.register(sys_stats_reporter, "sysstats-reporter") - - - @pytest.fixture(scope="session") # type: ignore[misc] -@@ -252,5 +249,5 @@ def stats_processes(request: "SubRequest") -> StatsProcesses: - """ - Session scoped process statistics tracker. - """ -- plugin = request.config.pluginmanager.get_plugin("sysstats-processes") # type: StatsProcesses -- return plugin -+ if request.config.pluginmanager.has_plugin("sysstats-processes"): -+ return request.config.pluginmanager.get_plugin("sysstats-processes") # type: StatsProcesses |
