""" Pytest configuration and fixtures for the Numpy test suite. """ import pytest import numpy import matplotlib import doctest matplotlib.use('agg', force=True) # Ignore matplotlib output such as ``. doctest monkeypatching inspired by # https://github.com/wooyek/pytest-doctest-ellipsis-markers (MIT license) OutputChecker = doctest.OutputChecker empty_line_markers = ['