<feed xmlns='http://www.w3.org/2005/Atom'>
<title>django.git/tests/test_runner/test_debug_sql.py, branch main</title>
<subtitle>django
</subtitle>
<id>http://cgit.adnoto.dev/django.git/atom?h=main</id>
<link rel='self' href='http://cgit.adnoto.dev/django.git/atom?h=main'/>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/'/>
<updated>2026-02-26T13:27:33Z</updated>
<entry>
<title>Refs #36936 - Adjusted tests to set PYTHON_COLORS environment variable.</title>
<updated>2026-02-26T13:27:33Z</updated>
<author>
<name>Pete Rosenblum</name>
<email>prosenbl@gmail.com</email>
</author>
<published>2026-02-26T04:55:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=71d1e92e11093feb9a337f6d77078c5e75cbb92f'/>
<id>urn:sha1:71d1e92e11093feb9a337f6d77078c5e75cbb92f</id>
<content type='text'>
When "FORCE_COLOR" was set in the environment (such as in django-docker-box)
several test cases that rely on string comparisons against exception
messages or command line results would fail due to ANSI escape sequences
being present in the output. This change resolved the issue by setting
the "PYTHON_COLORS" environment variable to "0" for those specific tests,
which takes precendence over the presence of "FORCE_COLOR".
</content>
</entry>
<entry>
<title>Fixed #36380 -- Deferred SQL formatting when running tests with --debug-sql.</title>
<updated>2025-06-16T20:41:24Z</updated>
<author>
<name>Natalia</name>
<email>124304+nessita@users.noreply.github.com</email>
</author>
<published>2025-06-03T18:54:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=1a03a984ab3728253f964ba16cd8d806f76bddf9'/>
<id>urn:sha1:1a03a984ab3728253f964ba16cd8d806f76bddf9</id>
<content type='text'>
Thanks to Jacob Walls for the report and previous iterations of this
fix, to Simon Charette for the logging formatter idea, and to Tim Graham
for testing and ensuring that 3rd party backends remain compatible.

This partially reverts d8f093908c504ae0dbc39d3f5231f7d7920dde37.

Refs #36112, #35448.

Co-authored-by: Jacob Walls &lt;jacobtylerwalls@gmail.com&gt;
</content>
</entry>
<entry>
<title>Fixed #36005 -- Dropped support for Python 3.10 and 3.11.</title>
<updated>2025-01-20T13:07:28Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2025-01-17T21:09:56Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=f5772de69679efb54129ac1cbca3579b512778af'/>
<id>urn:sha1:f5772de69679efb54129ac1cbca3579b512778af</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #35448 -- Fixed formatting of test --debug-sql output.</title>
<updated>2025-01-18T06:04:57Z</updated>
<author>
<name>Tim Graham</name>
<email>timograham@gmail.com</email>
</author>
<published>2025-01-05T01:27:28Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=d8f093908c504ae0dbc39d3f5231f7d7920dde37'/>
<id>urn:sha1:d8f093908c504ae0dbc39d3f5231f7d7920dde37</id>
<content type='text'>
Also adds DatabaseOperations.format_debug_sql() hook for backends
(e.g. NoSQL) to customize formatting.
</content>
</entry>
<entry>
<title>Fixed #34111 -- Made test runner with --debug-sql format SQL queries.</title>
<updated>2022-10-24T06:11:30Z</updated>
<author>
<name>Giebisch</name>
<email>rafael@giebisch-mail.de</email>
</author>
<published>2022-10-20T22:37:27Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=3283120cca5d5eba5c3619612d0de5ad49dcf054'/>
<id>urn:sha1:3283120cca5d5eba5c3619612d0de5ad49dcf054</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Refs #33173 -- Fixed test_runner/test_utils tests on Python 3.11+.</title>
<updated>2022-04-07T05:02:21Z</updated>
<author>
<name>Mariusz Felisiak</name>
<email>felisiak.mariusz@gmail.com</email>
</author>
<published>2022-04-07T05:02:21Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=2ee4caf56b8e000cabbb73ad81ff05738d6d0a35'/>
<id>urn:sha1:2ee4caf56b8e000cabbb73ad81ff05738d6d0a35</id>
<content type='text'>
Python 3.11 uses fully qualified test name in unittest output. See
https://github.com/python/cpython/commit/755be9b1505af591b9f2ee424a6525b6c2b65ce9</content>
</entry>
<entry>
<title>Refs #33476 -- Reformatted code with Black.</title>
<updated>2022-02-07T19:37:05Z</updated>
<author>
<name>django-bot</name>
<email>ops@djangoproject.com</email>
</author>
<published>2022-02-03T19:24:19Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=9c19aff7c7561e3a82978a272ecdaad40dda5c00'/>
<id>urn:sha1:9c19aff7c7561e3a82978a272ecdaad40dda5c00</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #32227 -- Prevented crash when setUpTestData() errors with --debug-sql.</title>
<updated>2020-11-28T11:22:59Z</updated>
<author>
<name>Adam Johnson</name>
<email>me@adamj.eu</email>
</author>
<published>2020-11-26T10:07:18Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=b9fd09d21b722c3745501151f9cbd5b95ccc3177'/>
<id>urn:sha1:b9fd09d21b722c3745501151f9cbd5b95ccc3177</id>
<content type='text'>
Thanks Mariusz Felisiak for the report.
</content>
</entry>
<entry>
<title>Fixed #27857 -- Dropped support for Python 3.4.</title>
<updated>2017-09-25T21:11:03Z</updated>
<author>
<name>Tim Graham</name>
<email>timograham@gmail.com</email>
</author>
<published>2017-02-18T00:45:34Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=cfff2af02be40106d4759cc6f8bfa476ce82421c'/>
<id>urn:sha1:cfff2af02be40106d4759cc6f8bfa476ce82421c</id>
<content type='text'>
</content>
</entry>
<entry>
<title>Fixed #28360 -- Fixed test runner crash with --debug-sql on fail/error in subTest.</title>
<updated>2017-07-05T20:56:24Z</updated>
<author>
<name>Sergey Fedoseev</name>
<email>fedoseev.sergey@gmail.com</email>
</author>
<published>2017-07-05T05:17:16Z</published>
<link rel='alternate' type='text/html' href='http://cgit.adnoto.dev/django.git/commit/?id=6de2930078d5d13894315c0a88549e6a5e71c701'/>
<id>urn:sha1:6de2930078d5d13894315c0a88549e6a5e71c701</id>
<content type='text'>
</content>
</entry>
</feed>
