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

fix deprecation warnings #1728

Merged
merged 5 commits into from
Aug 15, 2023
Merged

fix deprecation warnings #1728

merged 5 commits into from
Aug 15, 2023

Conversation

williballenthin
Copy link
Collaborator

closes #1718
closes #1719

Checklist

  • No CHANGELOG update needed
  • No new tests needed
  • No documentation update needed

@williballenthin williballenthin added enhancement New feature or request dependencies Pull requests that update a dependency file labels Aug 15, 2023
Copy link
Collaborator

@mr-tz mr-tz left a 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!

CHANGELOG.md Outdated Show resolved Hide resolved
@@ -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))
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

neat

tests/test_ida_features.py Outdated Show resolved Hide resolved

# 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
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

alternatively, rename to _test_...?

Copy link
Collaborator

@yelhamer yelhamer left a 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!

@williballenthin williballenthin merged commit 7e78133 into master Aug 15, 2023
23 checks passed
@williballenthin williballenthin deleted the fix/issue-1719 branch August 15, 2023 12:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Pull requests that update a dependency file enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

pytest yield tests deprecated pydantic parse_raw is deprecated
3 participants