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 here<https://pypi.python.org/pypi/py/1.4.15> .
def initpkg(pkgname, exportdefs, attr=dict()): """ initialize given package from the export definitions. """ oldmod = sys.modules.get(pkgname) d = {} f = getattr(oldmod, '__file__', None) if f: f = os.path.abspath(f) d['__file__'] = f if hasattr(oldmod, '__version__'): d['__version__'] = oldmod.__version__ if hasattr(oldmod, '__loader__'): d['__loader__'] = oldmod.__loader__ if hasattr(oldmod, '__path__'): d['__path__'] = [os.path.abspath(p) for p in oldmod.__path__] if '__doc__' not in exportdefs and getattr(oldmod, '__doc__', None): d['__doc__'] = oldmod.__doc__ d.update(attr) if hasattr(oldmod, "__dict__"): oldmod.__dict__.update(d) mod = ApiModule(pkgname, exportdefs, implprefix=pkgname, attr=d) On Wed, Jul 10, 2013 at 9:17 PM, Slide <slide.o....@gmail.com> wrote: > Can you show what line 33 in _apipkg.py is? > > > On Wed, Jul 10, 2013 at 4:34 PM, Travis Lee <timoteo1...@gmail.com> wrote: > >> I'm trying to use PyTest <http://pytest.org/latest/> 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. >> >> c:\>"c:\Program Files (x86)\IronPython 2.7\ipy.exe" >> IronPython 2.7.3 (2.7.0.40) on .NET 4.0.30319.18047 (32-bit) >> Type "help", "copyright", "credits" or "license" for more information. >> >>> import pytest >> Traceback (most recent call last): >> File "<stdin>", line 1, in <module> >> File >> "C:\Users\***\AppData\Roaming\Python\IronPython27\site-packages\pytest-2.3.5-py2.7.egg\pytest.py", >> line 12, in <module> >> File >> "C:\Users\***\AppData\Roaming\Python\IronPython27\site-packages\pytest-2.3.5-py2.7.egg\_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 >> >> I think it's expecting a standard Python dictionary. Is there any way >> around this? >> >> Thanks. >> >> _______________________________________________ >> Ironpython-users mailing list >> Ironpython-users@python.org >> http://mail.python.org/mailman/listinfo/ironpython-users >> >> > > > -- > Website: http://earl-of-code.com >
_______________________________________________ Ironpython-users mailing list Ironpython-users@python.org http://mail.python.org/mailman/listinfo/ironpython-users