Skip to content

Conversation

jhlegarreta
Copy link
Contributor

Use appropriate message when reporting file attribute error in TCK: the previous message was mistakenly reporting the non-existence of the file attribute, which indeed has to exist to be able to do the hdr['file'] without getting a KeyError. This patch set uses the message that was not being used when the check was not being successful.

Copy link

codecov bot commented Jul 5, 2025

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 95.44%. Comparing base (a8a1759) to head (f9b23a9).
⚠️ Report is 3 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master    #1422   +/-   ##
=======================================
  Coverage   95.44%   95.44%           
=======================================
  Files         209      209           
  Lines       29782    29782           
  Branches     4472     4472           
=======================================
  Hits        28424    28424           
  Misses        925      925           
  Partials      433      433           

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Use appropriate message when reporting `file` attribute error in TCK:
the previous message was mistakenly reporting the non-existence of the
`file` attribute, which indeed has to exist to be able to do the
`hdr['file']` without getting a `KeyError`. This patch set uses the
message that was not being used when the check was not being successful.
@jhlegarreta jhlegarreta force-pushed the UseAppropriateMsgInTckError branch from 3993b97 to 9805f6e Compare July 5, 2025 21:40
@jhlegarreta
Copy link
Contributor Author

jhlegarreta commented Jul 5, 2025

Style errors predated this PR. Addressed in PR #1423.
Type checking errors predated this PR. Addressed in PR #1424.

@jhlegarreta
Copy link
Contributor Author

@effigies this is ready to be merged.

Copy link
Member

@effigies effigies left a comment

Choose a reason for hiding this comment

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

Good catch!

@effigies effigies merged commit 70f278e into nipy:master Sep 22, 2025
61 checks passed
@jhlegarreta jhlegarreta deleted the UseAppropriateMsgInTckError branch September 22, 2025 11:58
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants