1
0
mirror of https://github.com/edgewall/genshi.git synced 2026-02-05 06:45:30 +01:00
Files
genshi/pytest.ini
Simon Cross ca08e57c90 Switch tests to pytest. (#86)
* Move tests into modules prefixed with test_ so that pytest can locate them.

* Fix missing imports for doctests in genshi.filters.transforms.

* Add pytest configuration.

* Rename test_utils to utils so that it is not considered a test module by pytest.

* Rename test_util_x to test_util.

* Replace 'is' and 'is not' checks on ints with ones on bools to silence SyntaxWarning.

* Run tests with pytest.

* Set pytest options for CI.

* Add setuptools to tox (it supplies pkg_resources for tests.

* Install genshi before trying to run pytest.

* Add missing parenthesises to matrix pytest-extra-options value.

* Customize pytest options for Python 2.7.

* Ignore Expression deprecation warning on Python 3.13.

* Remove pypy2 and Python 3.13 from matrix so that they can be added via include.

* Add ALLOW_UNICODE flag to hopefully support Python 2.7 docstests.

* Expand astutil warning exclusion for Python 3.13.

* Expand warning exclusion for Python 3.13 further.
2024-08-25 01:08:58 +02:00

4 lines
94 B
INI

[pytest]
addopts = --doctest-modules
doctest_optionflags = NORMALIZE_WHITESPACE ALLOW_UNICODE