astropy / astropy/astroquery

Lots of ResourceWarning during doctests

Open
#2,323 5 comments 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
791
Forks
451
Avg merge
1d 3h
Merged PRs (30d)
4

Description

A lot of these resource warnings are shown when running the doctests. They are normally ignored, but unfortunately can cause issues when raised for docs lines that use `SHOW_WARNIGS`.

```
ResourceWarning: unclosed
```

Contributor guide

Open the contributing guide

Research direction

The issue names no file or specific test; start by running the doctests with warnings visible, especially docs lines that use `SHOW_WARNIGS`. Trace the unclosed `ssl.SSLSocket` warnings to their source and verify that doctest runs no longer emit these ResourceWarnings.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
testing
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.