#35986: Some unit tests in forms_tests.tests.test_input_formats not running
-------------------------------------+-------------------------------------
Reporter: Arthur Pemberton | Type: Bug
Status: new | Component:
| Uncategorized
Version: 5.1 | Severity: Normal
Keywords: | Triage Stage:
| Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
-------------------------------------+-------------------------------------
For example, the test "CustomTimeInputFormatsTests" does not get
discovered and ran via:
`./runtests.py forms_tests.tests.test_input_formats`
And attempting to run the test direct with `./runtests.py
forms_tests.tests.test_input_formats.CustomTimeInputFormatsTests` results
in an error:
AttributeError: 'CustomTimeInputFormatsTests' object has no attribute
'runTest'. Did you mean: 'subTest'?
Using Python 3.12, I followed the steps from
https://docs.djangoproject.com/en/dev/internals/contributing/writing-code
/unit-tests/#running-the-unit-tests to setup a clean environment.
--
Ticket URL: <
https://code.djangoproject.com/ticket/35986>
Django <
https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.