From 268276f7acc55a79fbd31a7d510af93d43ac2d8f Mon Sep 17 00:00:00 2001 From: Benoit Pierre Date: Mon, 14 Aug 2023 19:45:35 +0200 Subject: [PATCH] tests: fix assertion rewriting when pytest is used --- run_unittests.py | 2 +- setup.cfg | 2 +- unittests/__init__.py | 0 3 files changed, 2 insertions(+), 2 deletions(-) create mode 100644 unittests/__init__.py diff --git a/run_unittests.py b/run_unittests.py index 4dd674d34..7a2502a6e 100755 --- a/run_unittests.py +++ b/run_unittests.py @@ -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: diff --git a/setup.cfg b/setup.cfg index a23af07c6..dfaba76dd 100644 --- a/setup.cfg +++ b/setup.cfg @@ -62,4 +62,4 @@ include = mesonbuild, mesonbuild.* [tool:pytest] python_classes = python_files = - run_unittests.py + unittests/*tests.py diff --git a/unittests/__init__.py b/unittests/__init__.py new file mode 100644 index 000000000..e69de29bb