tests: fix assertion rewriting when pytest is used

This commit is contained in:
Benoit Pierre 2023-08-14 19:45:35 +02:00 committed by Eli Schwartz
parent 7cbe37ebd9
commit 268276f7ac
3 changed files with 2 additions and 2 deletions

View File

@ -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:

View File

@ -62,4 +62,4 @@ include = mesonbuild, mesonbuild.*
[tool:pytest]
python_classes =
python_files =
run_unittests.py
unittests/*tests.py

0
unittests/__init__.py Normal file
View File