-
Notifications
You must be signed in to change notification settings - Fork 300
tidy requirements and site.cfg #3458
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
Conversation
| # importing anything else. | ||
| import iris.tests as tests | ||
|
|
||
| from unittest import mock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F401 'unittest.mock' imported but unused
| # importing anything else. | ||
| import iris.tests as tests | ||
|
|
||
| from unittest import mock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F401 'unittest.mock' imported but unused
| # importing anything else. | ||
| import iris.tests as tests | ||
|
|
||
| from unittest import mock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F401 'unittest.mock' imported but unused
| # importing anything else. | ||
| import iris.tests as tests | ||
|
|
||
| from unittest import mock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F401 'unittest.mock' imported but unused
|
|
||
| import types | ||
| import cftime | ||
| import types |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F401 'types' imported but unused
| # importing anything else. | ||
| import iris.tests as tests | ||
|
|
||
| from unittest import mock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F401 'unittest.mock' imported but unused
| import iris.tests as tests | ||
|
|
||
| from mock import MagicMock | ||
| from unittest.mock import MagicMock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
F401 'unittest.mock.MagicMock' imported but unused
| @@ -1,8 +1,6 @@ | |||
| [System] | |||
| udunits2_path = /path/to/libudunits2.so | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is now no longer used.
| try: | ||
| from unittest import mock | ||
| except ImportError: | ||
| import mock |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Now use unittest.mock from Python3
lbdreyer
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Other than Stickler complaining about unused imports this all looks good!
@bjlittle Can you address the unused imports, then I'll be happy to merge!
|
Thanks @bjlittle ! |
This PR tidies the dependencies of
irisnow that it is exclusively Python3.