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 test deprecation warnings #4556

Merged
merged 1 commit into from Jan 12, 2022
Merged

Fix test deprecation warnings #4556

merged 1 commit into from Jan 12, 2022

Conversation

gshank
Copy link
Contributor

@gshank gshank commented Jan 6, 2022

resolves #3988

Description

Fix warnings that we see at the end of tests (from pytest). Two networkx deprecation warnings were fixed by using different functions, as recommended. The LegacyVersion deprecation warning was trapped in our semver.py package. The warnings caused by jinja use of 'soft_unicode' instead of 'soft_str' were suppresed in a pytest.ini file.

Checklist

  • I have signed the CLA
  • I have run this code in development and it appears to resolve the stated issue
  • This PR includes tests, or tests are not required/relevant for this PR
  • I have updated the CHANGELOG.md and added information about my change

@cla-bot cla-bot bot added the cla:yes label Jan 6, 2022
Copy link
Member

@emmyoop emmyoop left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

=====487 passed, 2 skipped, 3263 warnings in 307.59s (0:05:07) =====
to
===== 487 passed, 2 skipped in 304.79s (0:05:04) =====
😍 😍

LGTM but I think any test changes we make should run with the test all label to make sure to catch anything weird with python versions / systems before we merge in.

@gshank gshank added the test all run tests for all python versions + systems label Jan 7, 2022
@gshank gshank merged commit 5aeb088 into main Jan 12, 2022
@gshank gshank deleted the test_deprecation_warnings branch January 12, 2022 22:03
iknox-fa pushed a commit that referenced this pull request Feb 8, 2022
automatic commit by git-black, original commits:
  5aeb088
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cla:yes test all run tests for all python versions + systems
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Investigate and fix deprecation warnings encountered in tests
2 participants