diff --git a/test/test.py b/test/test.py index 4382faf..75da9b8 100755 --- a/test/test.py +++ b/test/test.py @@ -65,6 +65,7 @@ def run_command(self, command, **kwargs): def _repl_sh(command, args, non_printable_insert): os.environ["PS1"] = "$" + os.environ["TERM"] = "" child = pexpect.spawn(command, args, echo=False, encoding="utf-8") ps1 = PEXPECT_PROMPT[:5] + non_printable_insert + PEXPECT_PROMPT[5:] ps2 = PEXPECT_CONTINUATION_PROMPT[:5] + non_printable_insert + PEXPECT_CONTINUATION_PROMPT[5:] @@ -79,7 +80,7 @@ def bash_repl(command="bash"): def zsh_repl(command="zsh"): - sh = _repl_sh(command, ["--no-rcs", "-V"], non_printable_insert="%(!..)") + sh = _repl_sh(command, ["--no-rcs", "--no-globalrcs", "-V"], non_printable_insert="%(!..)") # Require two tabs to print all options (some tests rely on this). sh.run_command("setopt BASH_AUTO_LIST") return sh