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

tests: cleanup warning handling #2834

Merged
merged 4 commits into from
May 7, 2021

Conversation

jenshnielsen
Copy link
Collaborator

@jenshnielsen jenshnielsen commented Mar 19, 2021

  • use pytests warning fixture
  • Port some tests to pytest style

This should eventually help us get to a point where warnings can become errors for testing

@codecov
Copy link

codecov bot commented Mar 19, 2021

Codecov Report

Merging #2834 (1a809a8) into master (594097a) will not change coverage.
The diff coverage is n/a.

@@           Coverage Diff           @@
##           master    #2834   +/-   ##
=======================================
  Coverage   65.32%   65.32%           
=======================================
  Files         209      209           
  Lines       28210    28210           
=======================================
  Hits        18429    18429           
  Misses       9781     9781           

setup.cfg Outdated Show resolved Hide resolved
@trevormorgan
Copy link
Contributor

@jenshnielsen Should we try to land this before 0.26.0 release? I can take a look at the errors for python 3.9

@jenshnielsen
Copy link
Collaborator Author

@trevormorgan We could at least land the improvements to the tests to use the correct context managers. I think there is a test within the monitor module that needs significant work on all versions of python so it may take some time to get all warnings enabled

@jenshnielsen
Copy link
Collaborator Author

@trevormorgan and @astafan8 Retargeted this to just cleanup some warning handling in tests so this should be ready to land now

@jenshnielsen jenshnielsen added this to the 0.26.0 milestone May 7, 2021
@jenshnielsen jenshnielsen changed the title pytest raise on warnings tests: cleanup warning handling May 7, 2021
@jenshnielsen jenshnielsen merged commit 1eb3ea7 into microsoft:master May 7, 2021
@jenshnielsen jenshnielsen deleted the error_on_warnings branch May 7, 2021 09:30
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.

None yet

3 participants