summaryrefslogtreecommitdiff
path: root/tests/test_runner/test_debug_sql.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_runner/test_debug_sql.py')
-rw-r--r--tests/test_runner/test_debug_sql.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/test_runner/test_debug_sql.py b/tests/test_runner/test_debug_sql.py
index acf66633ef..61b60643c5 100644
--- a/tests/test_runner/test_debug_sql.py
+++ b/tests/test_runner/test_debug_sql.py
@@ -1,4 +1,5 @@
import logging
+import os
import unittest
from io import StringIO
from time import time
@@ -183,6 +184,7 @@ class QueryFormatterTests(unittest.TestCase):
@unittest.skipUnless(
connection.vendor == "sqlite", "Only run on sqlite so we can check output SQL."
)
+@mock.patch.dict(os.environ, {"PYTHON_COLORS": "0"})
class TestDebugSQL(unittest.TestCase):
class PassingTest(TestCase):
def runTest(self):