Skip to content

Commit

Permalink
tests: fix assertion rewriting when pytest is used
Browse files Browse the repository at this point in the history
  • Loading branch information
benoit-pierre authored and nirbheek committed Sep 27, 2023
1 parent 2be9342 commit 0c5652b
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion run_unittests.py
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ def main():
# Let there be colors!
if 'CI' in os.environ:
pytest_args += ['--color=yes']
pytest_args += ['./run_unittests.py']
pytest_args += ['unittests']
pytest_args += convert_args(sys.argv[1:])
# Always disable pytest-cov because we use a custom setup
try:
Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -62,4 +62,4 @@ include = mesonbuild, mesonbuild.*
[tool:pytest]
python_classes =
python_files =
run_unittests.py
unittests/*tests.py
Empty file added unittests/__init__.py
Empty file.

0 comments on commit 0c5652b

Please sign in to comment.