Skip to content

Python function ending with 'return """' produces "All tests passed!" #95

@x77686d

Description

@x77686d

It appears that a Python solution ending with 'return """' (triple double-quote) produces "All tests passed!" even though it's a syntax error. Sample code:

def grid_is_square(x):
        return """

Here's what the student sees:
image

The progress summary shows the following. Note the gray bar (not started(?)) and green bar (passed) for grid_is_square.
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions