Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Behavior of ut.expect(closed_cursor) #548

@jgebal

Description

@jgebal

Currently, when ut.expect is executed with a cursor that was closed, no exception is thrown.

I think we should change that behavior as such cursor is invalid and cannot be processed.

I would prefer the call to `ut.expect(closed_cursor) to raise exception.
We do not hide exceptions raised while fetching from cursor (like divisor_equal_to_zero) so I suppose we should not hide that we cannot execute expectation on a closed cursor.

Any thoughts on this? Should we change that behavior?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions