Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DM-14302: More lenient ThresholdSpecification repr test #24

Merged
merged 1 commit into from May 4, 2018

Conversation

jonathansick
Copy link
Member

Doing the string match with a floating point Quantity is fraught — and created an issue for a numpy 1.14 upgrade. This substring matching makes sure the that ThresholdSpecification.__repr__ is generally providing the right info.

Note we can't test this repr by instantiating the object from the repr string because the Astropy quantity __repr__ isn't instantiable.

Jenkins run: https://ci.lsst.codes/blue/organizations/jenkins/stack-os-matrix/detail/stack-os-matrix/27902/pipeline

@jonathansick jonathansick requested a review from timj May 3, 2018 18:31
Copy link
Member

@timj timj left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks okay. You don't care whether a 5 is in the repr?

Doing the string match with a floating point Quantity is fraught --- and
created an issue for a numpy 1.14 upgrade. This substring matching makes
sure the that ThresholdSpecification.__repr__ is generally providing the
right info.

Note we can't test this repr by instantiating the object from the repr
string becaues the Astropy quantity __repr__ isn't instantiable.
@jonathansick
Copy link
Member Author

Good idea. I added that assertion.

@ktlim ktlim deleted the tickets/DM-14302 branch August 25, 2018 05:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants