Skip to content

Commit 642de26

Browse files
authored
Expand comment explaining dummy memray options (#15539)
1 parent b3def24 commit 642de26

File tree

1 file changed

+3
-2
lines changed
  • datadog_checks_dev/datadog_checks/dev/plugin

1 file changed

+3
-2
lines changed

datadog_checks_dev/datadog_checks/dev/plugin/pytest.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -353,8 +353,9 @@ def pytest_addoption(parser):
353353
parser.addoption("--run-latest-metrics", action="store_true", default=False, help="run check_metrics tests")
354354

355355
if PY2:
356-
# Add a dummy memray options to make it possible to run memray with `ddev test --memray <integration>`
357-
# only on py3 environments
356+
# Add dummy memray options to make it possible to run memray with `ddev test --memray <integration>`
357+
# in both py2 and 3 environments. In py2 the option is simply ignored, see pytest_collection_modifyitems.
358+
# In py3 the option enables the memray plugin.
358359
parser.addoption("--memray", action="store_true", default=False, help="Dummy parameter for memray")
359360
parser.addoption(
360361
"--hide-memray-summary",

0 commit comments

Comments
 (0)