运行pytest报错
File "D:\python\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Scripts\pytest.exe\__main__.py", line 4, in <module>
File "D:\python\lib\site-packages\pytest\__init__.py", line 11, in <module>
from _pytest.capture import CaptureFixture
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\lib\site-packages\_pytest\capture.py", line 609, in <module>
class CaptureResult(NamedTuple, Generic[AnyStr]):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\lib\typing.py", line 2306, in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Multiple inheritance with NamedTuple is not supported
File "D:\python\lib\runpy.py", line 86, in _run_code
exec(code, run_globals)
^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\Scripts\pytest.exe\__main__.py", line 4, in <module>
File "D:\python\lib\site-packages\pytest\__init__.py", line 11, in <module>
from _pytest.capture import CaptureFixture
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\lib\site-packages\_pytest\capture.py", line 609, in <module>
class CaptureResult(NamedTuple, Generic[AnyStr]):
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "D:\python\lib\typing.py", line 2306, in _namedtuple_mro_entries
raise TypeError("Multiple inheritance with NamedTuple is not supported")
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
TypeError: Multiple inheritance with NamedTuple is not supported
