Skip to content

Some identical expressions are different when parsed from a string or created from Python #43

Open
@pombredanne

Description

@pombredanne

Three tests are failing and maked with @expectedfailure for now. See here, here and there

The essence of these bugs is that parsing the same fairly complex expression with or without simplify=True and building the same expression in Python then invoking .simplify() creates different expressions. Somehow the results of parsing and building the expression in code is not the same.
I cannot pinpoint exactly where this comes from. The bug exists in the no-new-stamement branch but also in master. And was there in master before we started the recent improvements.
I added the .pretty() method with a debug flag to try to digg more into the problem but I did find anything fishy yet.
Ideally we would need a test on a smaller expression that exhibit the same buggy behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions