tests: fix assertion rewriting when pytest is used

pull/12091/head
Benoit Pierre 1 year ago committed by Eli Schwartz
parent 7cbe37ebd9
commit 268276f7ac
  1. 2
      run_unittests.py
  2. 2
      setup.cfg
  3. 0
      unittests/__init__.py

@ -136,7 +136,7 @@ def main():
# Let there be colors! # Let there be colors!
if 'CI' in os.environ: if 'CI' in os.environ:
pytest_args += ['--color=yes'] pytest_args += ['--color=yes']
pytest_args += ['./run_unittests.py'] pytest_args += ['unittests']
pytest_args += convert_args(sys.argv[1:]) pytest_args += convert_args(sys.argv[1:])
# Always disable pytest-cov because we use a custom setup # Always disable pytest-cov because we use a custom setup
try: try:

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

Loading…
Cancel
Save