2
0
Fork 0
mirror of https://github.com/fish-shell/fish-shell synced 2025-01-23 10:15:08 +00:00
fish-shell/tests/pexpects/nullterm.py

18 lines
380 B
Python
Raw Normal View History

#!/usr/bin/env python3
import os
from pexpect_helper import SpawnedProc
# Regression test for #8873.
# fish doesn't crash if TERM is unset.
env = os.environ.copy()
env.pop("TERM", None)
sp = SpawnedProc(env=env)
sendline, expect_prompt = sp.sendline, sp.expect_prompt
expect_prompt()
sendline("set_color --italics")
expect_prompt()
sendline("set_color normal")
expect_prompt()