<div dir="ltr"><div style>Here's the method where it's failing. The last line is line 33 of the file.The full code for Py can be found <a href="https://pypi.python.org/pypi/py/1.4.15">here</a>.</div><div><br></div>

<div>def initpkg(pkgname, exportdefs, attr=dict()):</div><div>    """ initialize given package from the export definitions. """</div><div>    oldmod = sys.modules.get(pkgname)</div><div>    d = {}</div>

<div>    f = getattr(oldmod, '__file__', None)</div><div>    if f:</div><div>        f = os.path.abspath(f)</div><div>    d['__file__'] = f</div><div>    if hasattr(oldmod, '__version__'):</div><div>

        d['__version__'] = oldmod.__version__</div><div>    if hasattr(oldmod, '__loader__'):</div><div>        d['__loader__'] = oldmod.__loader__</div><div>    if hasattr(oldmod, '__path__'):</div>

<div>        d['__path__'] = [os.path.abspath(p) for p in oldmod.__path__]</div><div>    if '__doc__' not in exportdefs and getattr(oldmod, '__doc__', None):</div><div>        d['__doc__'] = oldmod.__doc__</div>

<div>    d.update(attr)</div><div>    if hasattr(oldmod, "__dict__"):</div><div>        oldmod.__dict__.update(d)</div><div>    mod = ApiModule(pkgname, exportdefs, implprefix=pkgname, attr=d)</div></div><div class="gmail_extra">

<br><br><div class="gmail_quote">On Wed, Jul 10, 2013 at 9:17 PM, Slide <span dir="ltr"><<a href="mailto:slide.o.mix@gmail.com" target="_blank">slide.o.mix@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div dir="ltr">Can you show what line 33 in _apipkg.py is? </div><div class="gmail_extra"><br><br><div class="gmail_quote"><div><div class="h5">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>


</div></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5"><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></div></div>_______________________________________________<br>
Ironpython-users mailing list<br>
<a href="mailto:Ironpython-users@python.org" target="_blank">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><span class="HOEnZb"><font color="#888888"><br><br clear="all"><div><br></div>-- <br>Website: <a href="http://earl-of-code.com" target="_blank">http://earl-of-code.com</a>
</font></span></div>
</blockquote></div><br></div>