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

Unify checking whether depreciation warnings were emitted in tests #495

Conversation

MateuszCzubak
Copy link
Contributor

What do these changes do?

This PR fixes a workaround introduced in e4cba8f for checking whether the DepreciationWarnings were emitted.

Previously, all warnings were recorded, while now only DepreciationWarning types are.

Are there changes in behavior for the user?

No, these changes affect tests only/

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes
  • Add a new news fragment into the CHANGES folder
    • name it <issue_id>.<type> (e.g. 588.bugfix)
    • if you don't have an issue_id change it to the pr id after creating the PR
    • ensure type is one of the following:
      • .feature: Signifying a new feature.
      • .bugfix: Signifying a bug fix.
      • .doc: Signifying a documentation improvement.
      • .removal: Signifying a deprecation or removal of public API.
      • .misc: A ticket has been closed, but it is not of interest to users.
    • Make sure to use full sentences with correct case and punctuation, for example: Fix issue with non-ascii contents in doctest text files.

@codecov
Copy link

codecov bot commented Jun 1, 2020

Codecov Report

Merging #495 (7a53041) into master (95f9db1) will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master     #495   +/-   ##
=======================================
  Coverage   86.39%   86.39%           
=======================================
  Files          12       12           
  Lines        2088     2088           
  Branches      343      343           
=======================================
  Hits         1804     1804           
  Misses        218      218           
  Partials       66       66           
Flag Coverage Δ
ubuntu-latest_3.10_mariadb-10.2 82.95% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.3 82.95% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.4 82.95% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.5 82.95% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.6 82.95% <ø> (ø)
ubuntu-latest_3.10_mariadb-10.7 82.95% <ø> (ø)
ubuntu-latest_3.10_mysql-5.7 83.81% <ø> (ø)
ubuntu-latest_3.10_mysql-8.0 85.68% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.2 82.50% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.3 82.50% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.4 82.50% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.5 82.50% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.6 82.50% <ø> (ø)
ubuntu-latest_3.7_mariadb-10.7 82.50% <ø> (ø)
ubuntu-latest_3.7_mysql-5.7 83.38% <ø> (ø)
ubuntu-latest_3.7_mysql-8.0 85.29% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.2 82.90% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.3 82.90% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.4 82.90% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.5 82.90% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.6 82.90% <ø> (ø)
ubuntu-latest_3.8_mariadb-10.7 82.90% <ø> (ø)
ubuntu-latest_3.8_mysql-5.7 83.76% <ø> (ø)
ubuntu-latest_3.8_mysql-8.0 85.59% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.2 82.90% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.3 82.90% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.4 82.90% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.5 82.90% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.6 82.90% <ø> (ø)
ubuntu-latest_3.9_mariadb-10.7 82.90% <ø> (ø)
ubuntu-latest_3.9_mysql-5.7 83.76% <ø> (ø)
ubuntu-latest_3.9_mysql-8.0 85.59% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.


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 95f9db1...7a53041. Read the comment docs.

@Nothing4You
Copy link
Collaborator

thanks for the PR.

with #703 this test method no longer relies on warnings, as the deprecated parts have been removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants