Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

ResourceWarning

Open Beginner friendly
#1,239 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
62/100
Issue type
Bug
Clarity
Mostly clear
Activity status
Stale
Tech stack
python
Domain
testing

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

warnings

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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from CLIMADA-project/climada_python

All issues in CLIMADA-project/climada_python

Similar issues

More Testing & QA issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.