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

Use warnings.catch_warnings to record warnings in test_settings #55

Merged
merged 2 commits into from
Dec 12, 2017

Conversation

drewejohnson
Copy link
Collaborator

By catching the warnings in the record, they are not printed to stdout/captured by pytest. Plus, this record allows us to count the number of warnings!

Closes #50

Signed-off-by: Andrew Johnson drewej@protonmail.com

By catching the warnings in the record, they are not printed to stdout/captured by pytest. Plus, this record allows us to count the number of warnings!

Signed-off-by: Andrew Johnson <drewej@protonmail.com>
@drewejohnson drewejohnson merged commit 9de21b5 into develop Dec 12, 2017
@drewejohnson drewejohnson deleted the pytest-filter-warnings branch December 12, 2017 01:24
drewejohnson added a commit that referenced this pull request Dec 13, 2017
* Updated gitignore to exclude pycharm project settings
* Skeleton files for each reader class; Basic directory setup
* Depletion reader and project settings (#1)
* Quick: DepletedMaterial returns time vector if not given as input (#2)
* Quick fix: DepletedMaterial getXY only returns time if no time is given as input
* Fixes #3; Cleaned up reader subclasses (#4)
* Fixes #3; Cleaned up reader subclasses
* Added versioneer (#18)
* Fix get xy (#21)
* Fixes #19: Material doesn't return days if given as input
* Fixed unit tests
* Versioneer (#23)
* Messages, logging, and exception (#24)
* Expand variable groups; XSReader base; Temporary settings  (#27)
* Branching testing; Temporary settings modification
* Initial documentation - sphinx (#28)
* Added variables.yaml to data_files in setup (#32)
* Added depreciation and future warning decorators; More debug statements (#34)
* Depletion reader now correctly adds data from TOT; Updated defaults (#39)
* Better support (#40)
* Added python 2.7 support (#41)
* Homogenized Universe (#35)
* Read depmtx (#44)
* Return A matrix from depmtx as csc matrix not csr (#46)
* Remove settings package; Cleaned up messages file (#47)
* Implemented a module level read function (#48)
* Examples (#49)
* depmtx reader now parses using regular expressions (#52)
* Updated documentation - developer guide, api, and examples (#59)
* Updated setup.py to begrudgingly support distutils (#61)
* Use warnings.catch_warnings to record warnings in test_settings (#55)
* Native drewtils (#62)
* Branching Reader (#65)
* Release 0.1.0
drewejohnson added a commit that referenced this pull request Dec 13, 2017
* Release 0.1.0 (#66)

* Updated gitignore to exclude pycharm project settings
* Skeleton files for each reader class; Basic directory setup
* Depletion reader and project settings (#1)
* Quick: DepletedMaterial returns time vector if not given as input (#2)
* Quick fix: DepletedMaterial getXY only returns time if no time is given as input
* Fixes #3; Cleaned up reader subclasses (#4)
* Fixes #3; Cleaned up reader subclasses
* Added versioneer (#18)
* Fix get xy (#21)
* Fixes #19: Material doesn't return days if given as input
* Fixed unit tests
* Versioneer (#23)
* Messages, logging, and exception (#24)
* Expand variable groups; XSReader base; Temporary settings  (#27)
* Branching testing; Temporary settings modification
* Initial documentation - sphinx (#28)
* Added variables.yaml to data_files in setup (#32)
* Added depreciation and future warning decorators; More debug statements (#34)
* Depletion reader now correctly adds data from TOT; Updated defaults (#39)
* Better support (#40)
* Added python 2.7 support (#41)
* Homogenized Universe (#35)
* Read depmtx (#44)
* Return A matrix from depmtx as csc matrix not csr (#46)
* Remove settings package; Cleaned up messages file (#47)
* Implemented a module level read function (#48)
* Examples (#49)
* depmtx reader now parses using regular expressions (#52)
* Updated documentation - developer guide, api, and examples (#59)
* Updated setup.py to begrudgingly support distutils (#61)
* Use warnings.catch_warnings to record warnings in test_settings (#55)
* Native drewtils (#62)
* Branching Reader (#65)
* Release 0.1.0
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.

2 participants