#35695: Running tests leaves empty unused directory behind
-------------------------------------+-------------------------------------
Reporter: Hisham | Owner: Hisham Mahmood
Mahmood |
Type: | Status: assigned
Cleanup/optimization |
Component: | Version: dev
Uncategorized |
Severity: Normal | Keywords:
Triage Stage: | Has patch: 0
Unreviewed |
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
-------------------------------------+-------------------------------------
Running `./runtests.py
model_fields.test_filefield.FileFieldTests.test_delete_content_file`
actually creates a file on disk and then deletes it leaving an empty
`unused/` directory behind. No other tests in
`model_fields.test_filefield.FileFieldTests` create any files on disk.
I suggest that we move this to a temporary folder like done in
https://github.com/django/django/pull/18396 but for `model_fields` instead
of `model_forms`
--
Ticket URL: <
https://code.djangoproject.com/ticket/35695>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.