-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: None
-
None
unittest-xml-reporting has been unmaintained for over a year and is incompatible with Python 3.12. We should switch to using pytest as our test runner, which has built in support for xml output.
[2023/06/06 02:16:18.262] Traceback (most recent call last): [2023/06/06 02:16:18.262] File "<string>", line 1, in <module> [2023/06/06 02:16:18.262] File "/opt/python/3.12/lib/python3.12/site-packages/xmlrunner/__init__.py", line 11, in <module> [2023/06/06 02:16:18.262] from .runner import XMLTestRunner [2023/06/06 02:16:18.262] File "/opt/python/3.12/lib/python3.12/site-packages/xmlrunner/runner.py", line 6, in <module> [2023/06/06 02:16:18.262] from .unittest import TextTestRunner, TestProgram [2023/06/06 02:16:18.262] File "/opt/python/3.12/lib/python3.12/site-packages/xmlrunner/unittest.py", line 8, in <module> [2023/06/06 02:16:18.262] from unittest import TestResult, _TextTestResult [2023/06/06 02:16:18.262] ImportError: cannot import name '_TextTestResult' from 'unittest' (/opt/python/3.12/lib/python3.12/unittest/__init__.py). Did you mean: 'TextTestResult'?
- is related to
-
PYTHON-3683 Support Python 3.12
- Development Complete
- related to
-
PYTHON-3738 Migrate to tox from setup.py doc
- Closed
-
MOTOR-1139 Switch to Pytest
- Closed