From 642de2613f7f53044fc7bb61be8b4b80bf0499a9 Mon Sep 17 00:00:00 2001 From: Ilia Kurenkov Date: Thu, 10 Aug 2023 17:05:00 +0200 Subject: [PATCH] Expand comment explaining dummy memray options (#15539) --- datadog_checks_dev/datadog_checks/dev/plugin/pytest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/datadog_checks_dev/datadog_checks/dev/plugin/pytest.py b/datadog_checks_dev/datadog_checks/dev/plugin/pytest.py index 80745fbe81bf2..4df4c4ee2f30b 100644 --- a/datadog_checks_dev/datadog_checks/dev/plugin/pytest.py +++ b/datadog_checks_dev/datadog_checks/dev/plugin/pytest.py @@ -353,8 +353,9 @@ def pytest_addoption(parser): parser.addoption("--run-latest-metrics", action="store_true", default=False, help="run check_metrics tests") if PY2: - # Add a dummy memray options to make it possible to run memray with `ddev test --memray ` - # only on py3 environments + # Add dummy memray options to make it possible to run memray with `ddev test --memray ` + # in both py2 and 3 environments. In py2 the option is simply ignored, see pytest_collection_modifyitems. + # In py3 the option enables the memray plugin. parser.addoption("--memray", action="store_true", default=False, help="Dummy parameter for memray") parser.addoption( "--hide-memray-summary",