diff options
author | Benoit Pierre <benoit.pierre@gmail.com> | 2023-08-14 19:45:35 +0200 |
---|---|---|
committer | Eli Schwartz <eschwartz93@gmail.com> | 2023-08-18 00:37:40 -0400 |
commit | 268276f7acc55a79fbd31a7d510af93d43ac2d8f (patch) | |
tree | 872479ac6454df6c59dfa5c8d1a5da8cb773e0b6 | |
parent | 7cbe37ebd94e9df984328fd9722cc2fc9f61651b (diff) | |
download | meson-268276f7acc55a79fbd31a7d510af93d43ac2d8f.zip meson-268276f7acc55a79fbd31a7d510af93d43ac2d8f.tar.gz meson-268276f7acc55a79fbd31a7d510af93d43ac2d8f.tar.bz2 |
tests: fix assertion rewriting when pytest is used
-rwxr-xr-x | run_unittests.py | 2 | ||||
-rw-r--r-- | setup.cfg | 2 | ||||
-rw-r--r-- | unittests/__init__.py | 0 |
3 files changed, 2 insertions, 2 deletions
diff --git a/run_unittests.py b/run_unittests.py index 4dd674d..7a2502a 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: @@ -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 0000000..e69de29 --- /dev/null +++ b/unittests/__init__.py |