Skip to content

Python API: should double type/[up|down]grade function registration raise an exception #1391

@ssteinbach

Description

@ssteinbach

Following discussion from: #1387

The python binding for the registration system for types and up/downgrade functions currently returns a bool:

However, the bindings have a system for capturing these results and raising exceptions. I briefly experimented with this during the development of #1387, but it seems like the python unit tests assume that its ok to double register the same type without it triggering an exception.

For unit testing this probably means additional functions that allow un-registering types from the TypeRegistry.

I think the action items are:

  • discuss at a TSC meeting whether this would be desired behavior,
    • ...and if so what exception should be raised

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions