diff options
Diffstat (limited to 'tests/dbshell/test_mysql.py')
-rw-r--r-- | tests/dbshell/test_mysql.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/dbshell/test_mysql.py b/tests/dbshell/test_mysql.py index b002a5d274..c3ecc6503b 100644 --- a/tests/dbshell/test_mysql.py +++ b/tests/dbshell/test_mysql.py @@ -1,3 +1,4 @@ +import os import subprocess import sys from pathlib import Path @@ -190,6 +191,8 @@ class MySqlDbshellCommandTestCase(SimpleTestCase): }, [], ) + if env: + env = {**os.environ, **env} fake_client = Path(__file__).with_name('fake_client.py') args[0:1] = [sys.executable, str(fake_client)] with self.assertRaises(subprocess.CalledProcessError) as ctx: |