summaryrefslogtreecommitdiff
path: root/doc/conftest.py
blob: c091c6c5ea408f037e62fb246110cf3dc7bcad21 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
"""
Pytest configuration and fixtures for the Numpy test suite.
"""
import pytest
import numpy
import matplotlib

matplotlib.use('agg', force=True)

@pytest.fixture(autouse=True)
def add_np(doctest_namespace):
    numpy.random.seed(1)
    doctest_namespace['np'] = numpy