Skip to content

Commit 268276f

Browse files
benoit-pierreeli-schwartz
authored andcommitted
tests: fix assertion rewriting when pytest is used
1 parent 7cbe37e commit 268276f

File tree

3 files changed

+2
-2
lines changed

3 files changed

+2
-2
lines changed

run_unittests.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ def main():
136136
# Let there be colors!
137137
if 'CI' in os.environ:
138138
pytest_args += ['--color=yes']
139-
pytest_args += ['./run_unittests.py']
139+
pytest_args += ['unittests']
140140
pytest_args += convert_args(sys.argv[1:])
141141
# Always disable pytest-cov because we use a custom setup
142142
try:

setup.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,4 +62,4 @@ include = mesonbuild, mesonbuild.*
6262
[tool:pytest]
6363
python_classes =
6464
python_files =
65-
run_unittests.py
65+
unittests/*tests.py

unittests/__init__.py

Whitespace-only changes.

0 commit comments

Comments
 (0)