diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-01-31 12:10:08 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-01-31 12:10:08 -0500 |
commit | 30198ee6d5642f3aa036a3bbb37bb129c3c793e6 (patch) | |
tree | 88aae5e2e09dc2eec1103af6b2ddd3dc9f435139 /tests/conftest.py | |
parent | 4fc64a97ce779c2d6bb972f0003b9b9f00e62c3a (diff) | |
parent | bf29fdcf295b32e88a7407c244a5c703f0499ca9 (diff) | |
download | python-coveragepy-git-30198ee6d5642f3aa036a3bbb37bb129c3c793e6.tar.gz |
Merge pull request #1111 from nedbat/nedbat/unittest2pytest
Use unittest2pytest to convert assertions
Diffstat (limited to 'tests/conftest.py')
-rw-r--r-- | tests/conftest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/conftest.py b/tests/conftest.py index 10761cdd..c2e0a893 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -16,6 +16,10 @@ import pytest from coverage import env +# Pytest will rewrite assertions in test modules, but not elsewhere. +# This tells pytest to also rewrite assertions in coveragetest.py. +pytest.register_assert_rewrite("tests.coveragetest") + # Pytest can take additional options: # $set_env.py: PYTEST_ADDOPTS - Extra arguments to pytest. |