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 minor test failure from change to astropy.units namespace #2842

Merged
merged 1 commit into from
Aug 28, 2024

Conversation

namurphy
Copy link
Member

@namurphy namurphy commented Aug 28, 2024

There was a change to the namespace in astropy.units so that astropy.units.core.UnitTypeError no longer exists (astropy/astropy#16868).

Based on the discussion in that issue, it sounds better to import something directly from astropy.units rather than the specific modules (i.e., use u.UnitTypeError vs astropy.units.core.UnitTypeError). Fortunately, this pattern is what we usually do anyway.

Note: there's still another error in the development version of astropy.units that this PR doesn't fix.

@github-actions github-actions bot added testing plasmapy.dispersion Related to the plasmapy.dispersion subpackage python Pull requests that update Python code labels Aug 28, 2024
Copy link

codecov bot commented Aug 28, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 95.16%. Comparing base (27da994) to head (4ab258f).
Report is 57 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #2842    /-   ##
=======================================
  Coverage   95.16%   95.16%           
=======================================
  Files         107      107           
  Lines        9608     9608           
  Branches     2225     2225           
=======================================
  Hits         9143     9143           
  Misses        277      277           
  Partials      188      188           

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

@namurphy namurphy added no changelog entry needed run weekly tests in CI Add this label to PRs to additionally run weekly tests. labels Aug 28, 2024
@namurphy namurphy marked this pull request as ready for review August 28, 2024 23:20
@namurphy namurphy requested a review from ejohnson-96 as a code owner August 28, 2024 23:20
@namurphy namurphy removed the request for review from ejohnson-96 August 28, 2024 23:21
@namurphy namurphy merged commit 0f90a71 into PlasmaPy:main Aug 28, 2024
50 of 53 checks passed
@namurphy namurphy deleted the astropydev-UnitTypeError branch August 28, 2024 23:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
plasmapy.dispersion Related to the plasmapy.dispersion subpackage python Pull requests that update Python code run weekly tests in CI Add this label to PRs to additionally run weekly tests. testing
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant