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

test(python): Add test coverage for _cpu_check module #14768

Merged
merged 4 commits into from
Feb 29, 2024
Merged

Conversation

stinodego
Copy link
Member

No description provided.

@github-actions github-actions bot added internal An internal refactor or improvement python Related to Python Polars labels Feb 29, 2024
Comment on lines -192 to -193
if _POLARS_ARCH != "x86-64":
return {}
Copy link
Member Author

Choose a reason for hiding this comment

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

It was not possible to end up in this code path as non-x86-64 architectures have no features enabled which causes an early return. So I removed this check.

Comment on lines -125 to -127
if _POLARS_ARCH != "x86-64":
msg = "CPUID is only available for x86"
raise SystemError(msg)
Copy link
Member Author

Choose a reason for hiding this comment

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

Idem.

@stinodego stinodego changed the title test(python): Add coverage for _cpu_check module. test(python): Add test coverage for _cpu_check module. Feb 29, 2024
@stinodego stinodego changed the title test(python): Add test coverage for _cpu_check module. test(python): Add test coverage for _cpu_check module Feb 29, 2024
@stinodego stinodego marked this pull request as ready for review February 29, 2024 12:59
Copy link

codecov bot commented Feb 29, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 80.95%. Comparing base (36d3b7c) to head (31242ac).
Report is 2 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main   #14768      +/-   ##
==========================================
+ Coverage   80.91%   80.95%   +0.04%     
==========================================
  Files        1324     1324              
  Lines      171907   171902       -5     
  Branches     2454     2452       -2     
==========================================
+ Hits       139090   139166      +76     
+ Misses      32349    32266      -83     
- Partials      468      470       +2     

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

@stinodego stinodego merged commit ed9f839 into main Feb 29, 2024
15 checks passed
@stinodego stinodego deleted the cpu-check-test branch February 29, 2024 13:23
@c-peters c-peters added the accepted Ready for implementation label Mar 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
accepted Ready for implementation internal An internal refactor or improvement python Related to Python Polars
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants