ResourceWarning
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 62/100
Research direction
The warning comes from the test module climada.test.test_nightlight, where sample.tar is opened and never closed; the traceback points at unittest.case:622, so the open call is likely in that test or a helper it uses. Find the open of sample.tar, close it with a context manager, then run that test module with python -X dev or -W error::ResourceWarning to confirm the warning is gone. Done when the test passes without a ResourceWarning.
Written by the indexing model from the issue text.
Description
ResourceWarning
unclosed file <_io.BufferedWriter name='/home/me/climada/data/sample.tar'>
Occurrence
- unittest.case:622
Raised in
- climada.test.test_nightlight
- Dominant language
- Jupyter Notebook
- Stars
- 478
- Forks
- 166
- Avg merge
- 1d 20h
- Merged PRs (30d)
- 2
Getting set up
- No Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from CLIMADA-project/climada_python
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
CLIMADA-project/climada_python#1337 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
CLIMADA-project/climada_python#1336 ·
-
CartoDB basemaps now need an API key (somewhat urgent)Possibly taken A pull request linked to this issue is open or already merged. Openbug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
CLIMADA-project/climada_python#1332 · 4 comments · 1 reaction ·
-
warnings
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
CLIMADA-project/climada_python#1241 ·
-
warnings
Difficulty 2/5 1-3 hours Newbie friendliness 62/100
CLIMADA-project/climada_python#1226 ·
All issues in CLIMADA-project/climada_python
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 83/100
keptinventory/kept#336 ·
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 77/100
transit-audio/transit#158 ·
-
SageMaker provider: streaming fails with NoStreamDataError on DJL Serving (LMI) endpointsPossibly taken @balajiaru claimed this today. Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
UKGovernmentBEIS/inspect_ai#6127 ·
Maintainers usually reply within 2 days
-
bug good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 86/100
blankframe-tech/ThrottleIQ#20 · 1 comment ·
Maintainers usually reply within 5 days
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Nimblesite/SharpLsp#510 ·
Maintainers usually reply within 1 day