Skip to content

Commit

Permalink
Expand comment explaining dummy memray options (#15539)
Browse files Browse the repository at this point in the history
iliakur authored Aug 10, 2023
1 parent b3def24 commit 642de26
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions datadog_checks_dev/datadog_checks/dev/plugin/pytest.py
Original file line number Diff line number Diff line change
@@ -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 <integration>`
# only on py3 environments
# Add dummy memray options to make it possible to run memray with `ddev test --memray <integration>`
# 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",

0 comments on commit 642de26

Please sign in to comment.