aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBenoit Pierre <benoit.pierre@gmail.com>2023-08-14 19:45:35 +0200
committerEli Schwartz <eschwartz93@gmail.com>2023-08-18 00:37:40 -0400
commit268276f7acc55a79fbd31a7d510af93d43ac2d8f (patch)
tree872479ac6454df6c59dfa5c8d1a5da8cb773e0b6
parent7cbe37ebd94e9df984328fd9722cc2fc9f61651b (diff)
downloadmeson-268276f7acc55a79fbd31a7d510af93d43ac2d8f.zip
meson-268276f7acc55a79fbd31a7d510af93d43ac2d8f.tar.gz
meson-268276f7acc55a79fbd31a7d510af93d43ac2d8f.tar.bz2
tests: fix assertion rewriting when pytest is used
-rwxr-xr-xrun_unittests.py2
-rw-r--r--setup.cfg2
-rw-r--r--unittests/__init__.py0
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:
diff --git a/setup.cfg b/setup.cfg
index a23af07..dfaba76 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 0000000..e69de29
--- /dev/null
+++ b/unittests/__init__.py