Skip to content

Conversation

davidhassell
Copy link
Collaborator

The original tested if units is not None: with units being a cf.Units object. This is nonsense, so the test should be if units:.

The new test is for the use case that brought this to light.

@davidhassell davidhassell added this to the 3.15.1 milestone May 3, 2023
@davidhassell davidhassell added the bug Something isn't working label May 4, 2023
Copy link
Member

@sadielbartholomew sadielbartholomew left a comment

Choose a reason for hiding this comment

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

Good spot. Sensible fix. The new test does indeed fail on the present main, so good idea to bring it into the test suite to capture any future issues. (The CI jobs are failing on clearly unrelated issues which I'll look into.)

Perfect, please merge.

@davidhassell davidhassell merged commit f00b49a into NCAS-CMS:main May 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants