我正在尝试将 PyTest 与 IronPython 一起使用,但 Py 中的一个模块需要一个纯 Python 字典,但得到的是 IronPython.Runtime.PythonDictionary。有没有办法避免下面的错误?我可以假设修改 py_aipkg.py 模块。
>>> import pytest
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\pytest.py", line 12, in <module>
File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\_pytest\core.py", line 7, in <module>
File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\py\__init__.py", line 19, in <module>
File "C:\Program Files (x86)\IronPython 2.7\lib\site-packages\py\_apipkg.py", line 33, in initpkg
SystemError: Unsupported param dictionary type: IronPython.Runtime.PythonDictionary