Skip to content

Issue with is_equivalent using different Licensing instances #21

Description

@tdruez

While this first code works fine:

from license_expression import Licensing

expression = 'gpl-2.0 AND zlib'
licensing = Licensing()
parsed1 = licensing.parse(expression)
parsed2 = licensing.parse(expression)
assert Licensing().is_equivalent(parsed1, parsed2)

This second fails:

expression = 'gpl-2.0 AND zlib'
parsed1 = Licensing().parse(expression)
parsed2 = Licensing().parse(expression)
assert Licensing().is_equivalent(parsed1, parsed2)

It seems to be related to the operator since this last one works as well:

expression = 'gpl-2.0'
parsed1 = Licensing().parse(expression)
parsed2 = Licensing().parse(expression)
assert Licensing().is_equivalent(parsed1, parsed2)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions