Victor Stinner

Results 702 comments of Victor Stinner

The following tests contains the word `tty` (outside comments). I checked if they are skipped when run in a worker process. Skipped tests: * `test_builtin`: always **skipped**. `test_input_tty*()` tests need...

Using `os.openpty()` is fine with fork+setsid: ```py import io import os def check_tty(context): try: parent_fd, child_fd = os.openpty() tty = os.isatty(parent_fd) os.close(parent_fd) os.close(child_fd) except OSError as exc: print(f"{context}: Is a...

I merged this PR as it is. I will prepare a following PR to handle test_builtin, test_fileio and test_shutil.

> test_builtin: always skipped. test_input_tty*() tests need a TTY and requires that readline is not loaded. > test_shutil: always skipped. test_shutil.test_stty_match() requires sys.__stdout__ to be a TTY to run the...

Follow-up: I created issue gh-119727: Add `--sequentially` option to regrtest to always run tests sequentially (ignore `-jN` option).

Maybe add a `site._CAN_USE_PYREPL` constant and modify `_pyrepl/__main__.py` to set `site._CAN_USE_PYREPL`?

I proposed PR gh-119269 to fix this issue.

Please check my second fix: PR gh-119332.

On Linux, two directories can use two different file systems, and each file system has its own "reserved" characters. What if you mount a NTFS partition in `/mnt/win` and check...