-
Notifications
You must be signed in to change notification settings - Fork 652
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix error message for XDR readers (#4231)
* fix error message for XDR readers - error message for not being able to write lockfile did not insert the filename into message: fixed by using proper f string - changed all .format to modern f string in XDR.py - add explicit test for offsets_filename() - add additional pytest.warns() to tests to catch warnings (reduces warnings output and checks that all expected warnings are raised with proper messages) * more robust checking of multiple warnings * Apply suggestions from code review Co-authored-by: Irfan Alibay <[email protected]> * simplified testing for multiple warnings * more explicit warnings testing - reduces warnings in test_xdr down to 2 (both related to del) - test for empty selection and missing elements warnings - rewriting more old-school parameter interpolation to f strings * only use f-strings where used Co-authored-by: Rocco Meli <[email protected]> * ignore warnings not germane to the XDR tests --------- Co-authored-by: Irfan Alibay <[email protected]> Co-authored-by: Rocco Meli <[email protected]>
- Loading branch information
1 parent
1eca655
commit 6e80c28
Showing
3 changed files
with
46 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters