1. Jeff Hardy
  2. django-ironpython
  3. Issues
Issue #1 open

'AssertionError: Cannot call lazy() with both str and unicode return types.' on IronPython

Jeff Hardy
repo owner created an issue

While trying to run Django on IronPython, the first error I hit is that, on IronPython, str == unicode, and thus this assertion fails. Adding an extra str is unicode check to the assertion

{{{ Traceback (most recent call last): File "tests\runtests.py", line 207, in tests\runtests.py File "tests\runtests.py", line 122, in django_tests File "...\django\django\db\models__init.py", line 5, in ...\django\django\db\models__init.py File "...\django\django\db\models\query.py", line 9, in ...\django\django\db\models\query.py File "...\django\django\db\models\fields__init.py", line 15, in ...\django\django\db\models\fields__init.py File "...\django\django\forms__init.py", line 14, in ...\django\django\forms__init.py File "...\django\django\forms\widgets.py", line 13, in ...\django\django\forms\widgets.py File "...\django\django\utils\formats.py", line 8, in ...\django\django\utils\formats.py File "...\django\django\utils\dateformat.py", line 17, in ...\django\django\utils\dateformat.py File "...\django\django\utils\dates.py", line 5, in ...\django\django\utils\dates.py File "...\django\django\utils\functional.py", line 239, in wrapper File "...\django\django\utils\functional.py", line 163, in init File "...\django\django\utils\functional.py", line 179, in prepare_class AssertionError: Cannot call lazy() with both str and unicode return types. }}}

Comments (4)

  1. Log in to comment