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

Fix unit test failing due to change in cf_units #2144

Merged
merged 3 commits into from
Sep 28, 2016

Conversation

djkirkham
Copy link
Contributor

A unit test was passing a mock object to cf_units.date2num, and failing with the changes in SciTools/cf-units#68. This change ensures that actual datetime objects are passed to that function.

The unit test in question doesn't care about the values returned by the function, so the datetimes passed are essentially arbitrary.

@djkirkham
Copy link
Contributor Author

@pelson @dkillick Since there has now been a release of cf_units, I suspect that the build will fail unless this PR is merged.

@djkirkham
Copy link
Contributor Author

@bjlittle

@djkirkham djkirkham changed the base branch from master to v1.10.x September 22, 2016 15:47
@djkirkham djkirkham force-pushed the fix-convert-unit-test branch from 896660e to fef06e9 Compare September 22, 2016 15:50
@DPeterK
Copy link
Member

DPeterK commented Sep 28, 2016

Looks good 👍

@DPeterK DPeterK merged commit 838c0b8 into SciTools:v1.10.x Sep 28, 2016
@DPeterK DPeterK mentioned this pull request Sep 28, 2016
@QuLogic QuLogic added this to the v1.10.x milestone Sep 28, 2016
@QuLogic QuLogic modified the milestones: v1.10.x, v1.11 Oct 25, 2016
@djkirkham djkirkham deleted the fix-convert-unit-test branch November 4, 2016 10:45
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.

3 participants