-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
Showing
4 changed files
with
22 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters