summaryrefslogtreecommitdiff
path: root/dev-python/pytest-system-statistics/files
diff options
context:
space:
mode:
authorroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
committerroot <root@alpha.trunkmasters.com>2026-06-12 19:09:37 -0500
commitb590c8d7572b727d565cc0b8ff660d43569845de (patch)
tree06f7a4102ea4e845df8b66660f252920d52952f9 /dev-python/pytest-system-statistics/files
parent24f9cbfc4c34fdb6a6e03311674414e881ceab47 (diff)
downloadbaldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.gz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.tar.xz
baldeagleos-repo-b590c8d7572b727d565cc0b8ff660d43569845de.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.patch43
1 files changed, 43 insertions, 0 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
new file mode 100644
index 000000000000..6d4751759617
--- /dev/null
+++ b/dev-python/pytest-system-statistics/files/pytest-system-statistics-1.0.2-loader.patch
@@ -0,0 +1,43 @@
+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