| Age | Commit message (Collapse) | Author | |
|---|---|---|---|
| 2026-03-30 | Refs #36770 -- Skipped test_in_memory_database_lock(). | Jacob Walls | |
| Skip pending some investigation. | |||
| 2026-03-30 | Refs #36770 -- Preferred addCleanup() in live server tests. | Jacob Walls | |
| 2025-07-23 | Refs #36500 -- Rewrapped long docstrings and block comments via a script. | django-bot | |
| Rewrapped long docstrings and block comments to 79 characters + newline using script from https://github.com/medmunds/autofix-w505. | |||
| 2024-01-26 | Applied Black's 2024 stable style. | Mariusz Felisiak | |
| https://github.com/psf/black/releases/tag/24.1.0 | |||
| 2023-08-23 | Fixed ResourceWarning from unclosed SQLite connection on Python 3.13+. | Mariusz Felisiak | |
| - backends.sqlite.tests.ThreadSharing.test_database_sharing_in_threads - backends.tests.ThreadTests.test_default_connection_thread_local: on SQLite, close() doesn't explicitly close in-memory connections. - servers.tests.LiveServerInMemoryDatabaseLockTest - test_runner.tests.SQLiteInMemoryTestDbs.test_transaction_support Check out https://github.com/python/cpython/pull/108015. | |||
| 2023-02-01 | Refs #33476 -- Applied Black's 2023 stable style. | David Smith | |
| Black 23.1.0 is released which, as the first release of the year, introduces the 2023 stable style. This incorporates most of last year's preview style. https://github.com/psf/black/releases/tag/23.1.0 | |||
| 2023-01-12 | Fixed thread termination in servers.tests.LiveServerPort on Python 3.10.9+, ↵ | Mariusz Felisiak | |
| 3.11.1+, and 3.12+. Class cleanups registered in TestCase subclasses are no longer called as TestCase.doClassCleanups() only cleans up the particular class, see https://github.com/python/cpython/commit/c2102136be569e6fc8ed90181f229b46d07142f8 | |||
| 2022-11-24 | Fixed #29062 -- Prevented possibility of database lock when using ↵ | baldychristophe | |
| LiveServerTestCase with in-memory SQLite database. Thanks Chris Jerdonek for the implementation idea. | |||
| 2022-10-08 | Refs #33990 -- Renamed TransactionTestCase.assertQuerysetEqual() to ↵ | Gregor Gärtner | |
| assertQuerySetEqual(). Co-Authored-By: Michael Howitz <mh@gocept.com> | |||
| 2022-04-14 | Relaxed some query ordering assertions in various tests. | Mariusz Felisiak | |
| It accounts for differences seen on MySQL with MyISAM storage engine. | |||
| 2022-03-08 | Rewrote some references to "master". | Adam Johnson | |
| Following d9a266d657f66b8c4fa068408002a4e3709ee669. | |||
| 2022-02-22 | Removed redundant QuerySet.all() calls in docs and tests. | Nick Pope | |
| Most QuerySet methods are mapped onto the Manager and, in general, it isn't necessary to call .all() on the manager. | |||
| 2022-02-07 | Refs #33476 -- Reformatted code with Black. | django-bot | |
| 2021-10-26 | Fixed #27079 -- Avoided multiple setUpClass()/tearDownClass() calls in ↵ | Jacob Walls | |
| LiveServerTestCase tests. | |||
| 2021-10-25 | Fixed typo in tests/servers/tests.py. | Jacob Walls | |
| 2021-10-18 | Refs #32956 -- Changed docs to treat the acronym HTTP phonetically. | David Smith | |
| 2021-04-12 | Fixed #32416 -- Made ThreadedWSGIServer close connections after each thread. | Chris Jerdonek | |
| ThreadedWSGIServer is used by LiveServerTestCase. | |||
| 2021-02-12 | Fixed #32437 -- Fixed cleaning up ALLOWED_HOSTS in LiveServerTestCase on ↵ | Chris Jerdonek | |
| setUpClass() failure. | |||
| 2021-02-06 | Refs #32394 -- Changed STATIC_URL/MEDIA_URL to relative paths in tests and ↵ | Markus Holtermann | |
| docs where appropriate. | |||
| 2020-12-15 | Fixed typo in tests/servers/tests.py. | Mariusz Felisiak | |
| 2019-11-18 | Replaced unnecessary str()/bytes() calls with literals. | Jon Dufresne | |
| 2019-07-10 | Fixed #30619 -- Made runserver --nothreading use single threaded WSGIServer. | atsuo ishimoto | |
| Browsers often use multiple connections with Connection: keep-alive. If --nothreading is specified, the WSGI server cannot accept new connections until the old connection is closed, causing hangs. Force Connection: close when --nothreading option is used. | |||
| 2019-01-28 | Fixed #30137 -- Replaced OSError aliases with the canonical OSError. | Jon Dufresne | |
| Used more specific errors (e.g. FileExistsError) as appropriate. | |||
| 2019-01-10 | Refs #28478 -- Deprecated TestCase's allow_database_queries and multi_db in ↵ | Simon Charette | |
| favor of databases. | |||
| 2018-12-19 | Fixed #30015 -- Ensured request body is properly consumed for keep-alive ↵ | Konstantin Alekseev | |
| connections. | |||
| 2018-11-10 | Fixed keep-alive support in manage.py runserver. | Florian Apolloner | |
| Ticket #25619 changed the default protocol to HTTP/1.1 but did not properly implement keep-alive. As a "fix" keep-alive was disabled in ticket #28440 to prevent clients from hanging (they expect the server to send more data if the connection is not closed and there is no content length set). The combination of those two fixes resulted in yet another problem: HTTP/1.1 by default allows a client to assume that keep-alive is supported unless the server disables it via 'Connection: close' -- see RFC2616 8.1.2.1 for details on persistent connection negotiation. Now if the client receives a response from Django without 'Connection: close' and immediately sends a new request (on the same tcp connection) before our server closes the tcp connection, it will error out at some point because the connection does get closed a few milli seconds later. This patch fixes the mentioned issues by always sending 'Connection: close' if we cannot determine a content length. The code is inefficient in the sense that it does not allow for persistent connections when chunked responses are used, but that should not really cause any problems (Django does not generate those) and it only affects the development server anyways. Refs #25619, #28440. | |||
| 2017-10-13 | Refs #28440 -- Fixed server connection closing test on macOS. | Tom | |
| 2017-09-25 | Fixed #27857 -- Dropped support for Python 3.4. | Tim Graham | |
| 2017-09-12 | Fixed #28440 -- Fixed WSGIServer hang on responses without a Content-Length. | Tom | |
| Disabled keep-alive to fix the regression in e6065c7b8363202c5eb13ba10c97a8c24d014b45. | |||
| 2017-06-05 | Fixed ResourceWarnings in tests/servers/tests.py. | Jon Dufresne | |
| e.g. ResourceWarning: unclosed <socket.socket [closed] fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=6> | |||
| 2017-05-30 | Fixed #28212 -- Allowed customizing the port that LiveServerTestCase uses. | Robert Rollins | |
| Forwardport of 877d7b71ae952b3bc946e5187d6c23039a71614d from stable/1.11.x | |||
| 2017-02-23 | Fixed #25619 -- Made runserver serve with HTTP 1.1 protocol | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-02-09 | Fixed #20238 -- Added threading support to LiveServerTestCase. | Nadège Michel | |
| 2017-01-26 | Refs #23919 -- Replaced usage of django.utils.http utilities with Python ↵ | Claude Paroz | |
| equivalents Thanks Tim Graham for the review. | |||
| 2017-01-25 | Refs #23919 -- Replaced super(ClassName, self) with super(). | chillaranand | |
| 2017-01-20 | Refs #23919 -- Removed django.utils._os.upath()/npath()/abspathu() usage. | Tim Graham | |
| These functions do nothing on Python 3. | |||
| 2017-01-19 | Refs #23919 -- Removed str() conversion of type and method __name__. | Simon Charette | |
| 2017-01-19 | Refs #23919 -- Removed obsolete contextlib.closing() calls (for Python 2). | Tim Graham | |
| 2017-01-18 | Refs #23919 -- Removed most of remaining six usage | Claude Paroz | |
| Thanks Tim Graham for the review. | |||
| 2017-01-18 | Refs #23919 -- Removed six.<various>_types usage | Claude Paroz | |
| Thanks Tim Graham and Simon Charette for the reviews. | |||
| 2017-01-18 | Refs #23919 -- Removed encoding preambles and future imports | Claude Paroz | |
| 2016-11-10 | Refs #27392 -- Removed "Tests that", "Ensures that", etc. from test docstrings. | za | |
| 2016-08-19 | Fixed #22414 -- Ensured that LiveServerTestCase closes connections. | Chris Jerdonek | |
| 2016-06-23 | Fixed #26791 -- Replaced LiveServerTestCase port ranges with binding to port 0. | Tim Graham | |
| 2016-06-16 | Fixed flake8 2.6 warnings. | Tim Graham | |
| 2016-01-02 | Refs #26011 -- Fixed AttributeError in test_port_bind test. | Marten Kenbeek | |
| 2015-12-31 | Fixed #26011 -- Prevented random LiveServerTestCase test failures on Windows. | Marten Kenbeek | |
| Prevented LiveServerTestCase from stealing ports used by concurrent processes on Windows. | |||
| 2015-07-06 | Fixed some unclosed objects in tests | Andriy Sokolovskiy | |
| 2015-06-12 | Fixed #24965 -- Made LiveServerTestCase.live_server_url accessible from class | Moritz Sichert | |
| 2015-02-06 | Sorted imports with isort; refs #23860. | Tim Graham | |
