-
Notifications
You must be signed in to change notification settings - Fork 51
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
add lxml as parser in from_xml calls #442
add lxml as parser in from_xml calls #442
Conversation
Codecov ReportBase: 93.90% // Head: 68.79% // Decreases project coverage by
Additional details and impacted files@@ Coverage Diff @@
## main #442 +/- ##
===========================================
- Coverage 93.90% 68.79% -25.12%
===========================================
Files 46 46
Lines 4001 4002 +1
===========================================
- Hits 3757 2753 -1004
- Misses 244 1249 +1005
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. ☔ View full report at Codecov. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Would approve but it seems like you just need to update the tests which handle / check exceptions that are returned from bad parsing.
So I updated the errors we're checking for related to XML parsing here which solved part of the problem with the tests. However, there are three test cases which should be failing but aren't:
Any ideas why these wouldn't get thrown with |
Duplicate of #478 now? |
oops, I totally forgot about this. I suppose it is a duplicate yes |
Closing as duplicate of #478 |
Description
Add
parser="lxml"
toome_types.from_xml
calls.This silences a
FutureWarning
, which lets us know thatome_types
's default parser will be changing fromxmlschema
tolxml
. This way we're adopting the incoming change explicitly, and since we're already depending onlxml
we're not requiring any additional libs and we can stop requiringxmlschema
.I wanted to add a test to make sure the right error is raised here but not quite sure how to produce a corrupted ome.tiff
Pull request recommendations:
Thanks for contributing!