<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>I was able to reproduce this issue with this snippet of code. <div><br></div><div><div>>>> from types import ModuleType</div><div>>>> class A(ModuleType):</div><div>... def __init__(self, d):</div><div>... pass</div><div>...</div><div>>>> t = dict()</div><div>>>> A(d = t)</div><div>Traceback (most recent call last):</div><div> File "<stdin>", line 1, in <module></div><div>SystemError: Unsupported param dictionary type: IronPython.Runtime.PythonDiction</div><div>ary</div><div><br></div><div>I could only reproduce it when the class inherits from ModuleType. </div><div><br></div><div>Danny</div><br><div><hr id="stopSpelling">Date: Wed, 10 Jul 2013 21:17:55 -0700<br>From: slide.o.mix@gmail.com<br>To: timoteo1097@gmail.com<br>CC: ironpython-users@python.org<br>Subject: Re: [Ironpython-users] PyTest incompatible: Unsupported param dictionary type: IronPython.Runtime.PythonDictionary<br><br><div dir="ltr">Can you show what line 33 in _apipkg.py is? </div><div class="ecxgmail_extra"><br><br><div class="ecxgmail_quote">On Wed, Jul 10, 2013 at 4:34 PM, Travis Lee <span dir="ltr"><<a href="mailto:timoteo1097@gmail.com" target="_blank">timoteo1097@gmail.com</a>></span> wrote:<br>
<blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex;"><div dir="ltr"><div style="font-family:arial,sans-serif;font-size:13px;">I'm trying to use <a href="http://pytest.org/latest/" target="_blank">PyTest</a> on IronPython. I haven't looked thoroughly but I've been told that PyTest does not use C extensions so it should theoretically work normally. <br>
</div>
<div style="font-family:arial,sans-serif;font-size:13px;"><br></div><div style="font-family:arial,sans-serif;font-size:13px;"><div>c:\>"c:\Program Files (x86)\IronPython 2.7\ipy.exe"</div><div>IronPython 2.7.3 (2.7.0.40) on .NET 4.0.30319.18047 (32-bit)</div>
<div>Type "help", "copyright", "credits" or "license" for more information.</div><div>>>> import pytest</div><div>Traceback (most recent call last):</div><div> File "<stdin>", line 1, in <module></div>
<div> File "C:\Users\***\AppData\Roaming\Python\IronPython27\site-packages\pytest-2.3.5-py2.7.egg\pytest.py", line 12, in <module></div><div> File "C:\Users\***\AppData\Roaming\Python\IronPython27\site-packages\pytest-2.3.5-py2.7.egg\_pytest\core.py", line 7, in <module></div>
<div> File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\py\__init__.py", line 19, in <module></div><div> File "C:\Program Files (x86)\IronPython 2.7\Lib\site-packages\py\_apipkg.py", line 33, in initpkg</div>
<div>SystemError: Unsupported param dictionary type: IronPython.Runtime.PythonDictionary</div></div><div style="font-family:arial,sans-serif;font-size:13px;"><br></div><div style="font-family:arial,sans-serif;font-size:13px;">
I think it's expecting a standard Python dictionary. Is there any way around this?</div><div style="font-family:arial,sans-serif;font-size:13px;"><br></div><div style="font-family:arial,sans-serif;font-size:13px;">Thanks.</div>
</div>
<br>_______________________________________________<br>
Ironpython-users mailing list<br>
<a href="mailto:Ironpython-users@python.org">Ironpython-users@python.org</a><br>
<a href="http://mail.python.org/mailman/listinfo/ironpython-users" target="_blank">http://mail.python.org/mailman/listinfo/ironpython-users</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Website: <a href="http://earl-of-code.com" target="_blank">http://earl-of-code.com</a>
</div>
<br>_______________________________________________
Ironpython-users mailing list
Ironpython-users@python.org
http://mail.python.org/mailman/listinfo/ironpython-users</div></div> </div></body>
</html>