[IronPython] pytest results in unsupported PythonDictionary system error

Piotr Nestorow Piotr.Nestorow at systemverification.com
Thu May 12 22:43:58 CEST 2011


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

-------------------------------------------

Cheers
Piotr Nestorow


More information about the Ironpython-users mailing list