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 global tqdm module patch in test #2319

Merged
merged 3 commits into from
Apr 29, 2024
Merged

Fix global tqdm module patch in test #2319

merged 3 commits into from
Apr 29, 2024

Conversation

cosenal
Copy link
Contributor

@cosenal cosenal commented Apr 24, 2024

Despite the patch of tqdm happens in a context manager, the fact that the module is reloaded inside the context makes it so that the patch affects all other tests. No test wasn't failing, because there was no assert on tqdm being there, but codecov reports were affected by this, i.e., this PR fixes #2318.

Copy link

codecov bot commented Apr 24, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 98.22%. Comparing base (ccb9ff6) to head (6028daa).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2319      +/-   ##
==========================================
+ Coverage   98.19%   98.22%   +0.02%     
==========================================
  Files          87       87              
  Lines        4052     4052              
==========================================
+ Hits         3979     3980       +1     
+ Misses         73       72       -1     

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

@cosenal
Copy link
Contributor Author

cosenal commented Apr 24, 2024

The test (macos-latest, 3.9) build failing is because of actions/setup-python#696

@cosenal cosenal requested a review from jordandsullivan April 24, 2024 21:29
@cosenal cosenal requested a review from vprusso April 26, 2024 12:51
@cosenal cosenal merged commit b7b6e1e into main Apr 29, 2024
18 checks passed
@cosenal cosenal deleted the fix-tqdm-import-patch branch April 29, 2024 09:26
@cosenal cosenal mentioned this pull request May 17, 2024
22 tasks
cosenal added a commit that referenced this pull request Jun 26, 2024
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.

Codecov report score fluctuates even when no changes
2 participants