Changes between Initial Version and Version 1 of Ticket #10144


Ignore:
Timestamp:
Jan 28, 2009, 9:52:50 PM (16 years ago)
Author:
Ramiro Morales
Comment:

(reformatted description)

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #10144 – Description

    initial v1  
    11When the comment_tests test is run under jython, I get this error:
    22
     3{{{
    34======================================================================
    45ERROR: testGetCommentApp (regressiontests.comment_tests.tests.app_api_tests.CommentAppAPITests)
     
    1213    package = __import__(comments_app, '', '', [''])
    1314TypeError: str indices must be integers
    14 
     15}}}
    1516
    1617The problem is that the __import__ function is taking a string for the second and third arguments when the parameters should be dictionaries. Python seems to coerce the strings into the correct format, but jython does not.
     
    1920
    2021svn diff __init__.py
     22{{{
    2123Index: __init__.py
    2224===================================================================
     
    3234         raise ImproperlyConfigured("The COMMENTS_APP setting refers to "\
    3335                                    "a non-existing package.")
     36}}}
Back to Top