Ensure no bytecode is written when running shell based tests

This commit is contained in:
Kovid Goyal 2022-08-08 17:50:59 +05:30
parent 4dd696e4e0
commit 21eece4c6d
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -40,6 +40,7 @@ def basic_shell_env(home_dir):
'KITTY_SHELL_INTEGRATION': 'enabled',
'KITTY_INSTALLATION_DIR': kitty_base_dir,
'BASH_SILENCE_DEPRECATION_WARNING': '1',
'PYTHONDONTWRITEBYTECODE': '1',
}
for x in ('USER', 'LANG'):
if os.environ.get(x):