[IronPython] pytest results in unsupported PythonDictionary system error
Dino Viehland
dinov at microsoft.com
Thu May 12 14:08:13 PDT 2011
Piotr wrote:
> Hi
>
> This is for IronPython 2.7
> Pytest 2.0.3 installed in site-packages
>
> Running a test with pytest results in the following system error:
> SystemError: Unsupported param dictionary type:
> IronPython.Runtime.PythonDictionary
>
> Any ideas what the problem is?
>
> ----------------------------------------------
> Here is the example and the error:
>
> class TestBasic:
> def test_01(self):
> for n in (2, 4, 6, 8, 10):
> yield self.n_greater_than_zero, n
>
> def n_greater_than_zero(self, n):
> assert n > 0
>
> if __name__ == '__main__':
> import pytest
> pytest.main()
>
> C:\IronPython\ipy.exe .\test_001_dd.py
> Traceback (most recent call last):
> File ".\test_001_dd.py", line 11, in <module>
> File "C:\IronPython\lib\site-packages\pytest.py", line 6, in <module>
> File "C:\IronPython\lib\site-packages\_pytest\core.py", line 7, in <module>
> File "C:\IronPython\lib\site-packages\py\__init__.py", line 19, in <module>
> File "C:\IronPython\lib\site-packages\py\_apipkg.py", line 33, in initpkg
> SystemError: Unsupported param dictionary type:
> IronPython.Runtime.PythonDictionary
Can you send the code in _apipkg.py on line 33 (and maybe some surrounding code)?
Anyway, it sounds like a binder bug but that code might help create a simple repro.
More information about the Users
mailing list