Commit e3c42d2c authored by Anton Akhmerov's avatar Anton Akhmerov
Browse files

fix missing import, test that code path

parent f5ee5d1b
......@@ -14,6 +14,7 @@ __all__ = ['MUMPSContext', 'schur_complement', 'AnalysisStatistics',
import time
import numpy as np
import scipy.sparse
import warnings
from . import _mumps
from .fortran_helpers import prepare_for_fortran
......@@ -81,3 +81,10 @@ def test_error_minus_9(r=10):
# No need to check result, it's enough if no exception is raised
def test_factor_warning():
"""Test that a warning is raised if factor is asked without analysis."""
a = sp.identity(10, dtype=complex)
with pytest.warns(RuntimeWarning):
MUMPSContext().factor(a, reuse_analysis=True)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment