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

Resolve DeprecationWarning by pytest: change warn to warning #449

Merged
merged 1 commit into from
Nov 5, 2020

Conversation

juhoinkinen
Copy link
Member

This fixes one DeprecationWarning that pytest has been giving for a while:

tests/test_project.py::test_project_train_state_not_available
  /home/local/jmminkin/git/Annif/annif/project.py:175: DeprecationWarning: The 'warn' method is deprecated, use 'warning' instead
    logger.warn('Could not get train state information.')

(Two other DeprecationWarnings remain, but they are from TensorFlow package.)

@juhoinkinen juhoinkinen added this to the 0.50 milestone Nov 5, 2020
@codecov
Copy link

codecov bot commented Nov 5, 2020

Codecov Report

Merging #449 into master will not change coverage.
The diff coverage is 100.00%.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #449   +/-   ##
=======================================
  Coverage   99.43%   99.43%           
=======================================
  Files          65       65           
  Lines        4577     4577           
=======================================
  Hits         4551     4551           
  Misses         26       26           
Impacted Files Coverage Δ
annif/project.py 99.34% <100.00%> (ø)

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7ebd7c0...53e07b5. Read the comment docs.

@sonarqubecloud
Copy link

sonarqubecloud bot commented Nov 5, 2020

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities (and Security Hotspot 0 Security Hotspots to review)
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

@juhoinkinen juhoinkinen merged commit 32259fa into master Nov 5, 2020
@juhoinkinen juhoinkinen deleted the warn-to-warning branch November 5, 2020 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant