Commit Graph

1 Commits

Author SHA1 Message Date
Omar Sandoval
ad2119aaa3 Tell pytest not to match classes/functions starting with "test"
I run tests with setup.py or with the unittest module, but Fedora uses
pytest. pytest assumes that any class or function starting with "test"
is a test case, which is not always the case (e.g.,
drgn.helpers.linux.bitops.test_bit()). We've hit this at least twice, in
#94 and #112.

All of our tests are unittest.TestCase cases, so we can tell pytest to
not match anything else. I'm using pytest.ini instead of pyproject.toml
because pytest only started supporting the latter relatively recently.

Closes #112.

Signed-off-by: Omar Sandoval <osandov@osandov.com>
2021-08-12 14:46:47 -07:00