…ration" This reverts commit 9f1dbe2. The proposed solution does not pass the test suite.
Thanks Thomas Tanner for the report.
Thanks Tomasz Kontusz for the report, Baptiste Mispelon for analysis and Tim Graham for the review.
Thanks Johannes Lerch for the report, Tim Graham for the test case, and Simon Charette for the review.
…gn key access." This reverts commit 0af3822. It's obsoleted by refs #24395.
This is preferrable to writing in the current working directory because it eliminates the risk to leak unwanted files, which can result in very weird test failures. Also this will help if we ever try to run these tests concurrently.
There's no reason to assume that sys.path is an appropriate location for generating code. Specifically that doesn't work with extend_sys_path which puts the additional directories at the end of sys.path. In order to create a new migrations module, instead of using an arbitrary entry from sys.path, import as much as possible from the path to the module, then create missing submodules from there. Without this change, the tests introduced in the following commit fail, which seems sufficient to prevent regressions for such a refactoring.
Dropped the DJANGO_TEST_TEMP_DIR environment variable. Before this change, proper removal depended on the developer passing dir=os.environ['DJANGO_TEST_TMP_DIR'] to tempfile functions.
… in docs