You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TST: assert that CUDD statistics interfaces issue UserWarning
specifically the methods `dd.cudd.BDD.statistics` and
`dd.cudd_zdd.BDD.statistics`. This `UserWarning` was
introduced to inform the users about a recent API change.
Moving the function `test_str` from the module `tests/common.py`
to the modules `tests/autoref_test.py`, `tests/cudd_test.py`,
and `tests/cudd_zdd_test.py`, with appropriate modification in
each case, turned out to be the simplest way of implementing
this check.
The function `nose.tools.assert_warns` is used.
In the upcoming commit that switches to using `pytest` for
testing, the function [`pytest.warns`][1] will be used
(read also ["Asserting warnings with the warns function"][2]).
[1]: https://docs.pytest.org/en/latest/reference/reference.html#pytest-warns
[2]: https://docs.pytest.org/en/latest/how-to/capture-warnings.html#warns
0 commit comments