-
Notifications
You must be signed in to change notification settings - Fork 557
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
fix deprecation warnings #1728
fix deprecation warnings #1728
Conversation
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.
minor suggestions, but overall looks great, thanks!
@@ -1223,7 +1223,7 @@ def main(argv: Optional[List[str]] = None): | |||
|
|||
if format_ == FORMAT_RESULT: | |||
# result document directly parses into meta, capabilities | |||
result_doc = capa.render.result_document.ResultDocument.parse_file(args.sample) | |||
result_doc = capa.render.result_document.ResultDocument.from_file(Path(args.sample)) |
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.
neat
|
||
# although these look like pytest tests, they're not, because they doesn't run within pytest | ||
# (the runner is below) and they use `yield`, which is deprecated. | ||
@nocollect |
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.
alternatively, rename to _test_...
?
Co-authored-by: Moritz <[email protected]>
Co-authored-by: Moritz <[email protected]>
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.
looks great to me. thanks!
closes #1718
closes #1719
Checklist