Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix deprecation warnings #185

Merged
merged 2 commits into from
Feb 13, 2019
Merged

Fix deprecation warnings #185

merged 2 commits into from
Feb 13, 2019

Conversation

jbarnoud
Copy link
Collaborator

Running the tests was causing a couple of deprecation warnings. This PR fixes them. The detail of the warnings is provided in the commit messages.

Running the tests for ISMAGS caused the following warning:

    vermouth/tests/test_ismags.py::test_broken_edgecase
      /coarse/jon/Envs/dev3vermouth/lib/python3.6/site-packages/networkx/classes/graph.py:749: DeprecationWarning: add_path is deprecated. Use nx.add_path instead.
        warnings.warn(msg, DeprecationWarning)

This commit replaces graph.add_path(...) by nx.add_path(graph, ...) in
the offending test.
Fix the following deprecation warning:

    vermouth/tests/gmx/test_gro.py::test_compare_dict_equal
      /coarse/jon/Envs/dev3vermouth/lib/python3.6/site-packages/hypothesis/internal/validation.py:113: HypothesisDeprecationWarning: min_size=None is deprecated; use min_size=0 instead.
        since="2018-10-06",
@pckroon pckroon merged commit d361836 into master Feb 13, 2019
@pckroon pckroon deleted the fix-deprecations branch June 3, 2020 09:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants