astral-sh / astral-sh/python-build-standalone

Run test_curses_interactive in CI

Open
#697 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
4.4k
Forks
314
Avg merge
1d 9h
Merged PRs (30d)
27

Description

From src/verify_distribution.py:
```python
@unittest.skipIf(os.name == "nt", "curses not available on Windows")
@unittest.skipIf("TERM" not in os.environ, "TERM not set")
def test_curses_interactive(self):
import curses

curses.initscr()
curses.endwin()
```

I believe this is getting skipped in GitHub Actions, but it's probably enough to run this inside a pty, we just need to set `TERM` to some valid value. If not we can try to run it in a real headless terminal like `screen`/`tmux` or something (just make sure we report the exit status correctly).

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.