Fixed only one doctest being collected when using ``pytest --doctest-modules path/to/an/__init__.py``.