Skip to content
Open
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 2 additions & 3 deletions check/pytest
Original file line number Diff line number Diff line change
Expand Up @@ -43,11 +43,10 @@ for arg in "$@"; do
done

if [ -z "${ACTUALLY_QUIET}" ]; then
pytest -c dev_tools/conf/pytest.ini --rootdir="$rootdir" "${PYTEST_ARGS[@]}"
pytest --rootdir="$rootdir" "${PYTEST_ARGS[@]}"
else
# Filter out lines like "...F....x... [ 42%]", with coloring.
pytest -c dev_tools/conf/pytest.ini \
--rootdir="$rootdir" -q --color=yes "${PYTEST_ARGS[@]}" | \
pytest --rootdir="$rootdir" -q --color=yes "${PYTEST_ARGS[@]}" | \
grep -Ev '^(\x1B\[0m)?[\.FEsx]+(\x1B\[36m)?[[:space:]]+\[[[:space:]]*[0-9]+%\](\x1B\[0m)?$'
exit "${PIPESTATUS[0]}"
fi
20 changes: 0 additions & 20 deletions dev_tools/conf/pytest.ini

This file was deleted.

8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -22,3 +22,11 @@ skip-magic-trailing-comma = true
# Speed up pytest-cov on Python 3.12+ by enabling sys.monitoring if possible.
core = "sysmon"
disable_warnings = ["no-sysmon"]

[tool.pytest.ini_options]
markers = [
"""slow: marks tests as slow (deselect with '-m "not slow"')""",
]
filterwarnings = [
"ignore:Skipped assert_qasm_is_consistent_with_unitary because qiskit.*:UserWarning",
]