-
Notifications
You must be signed in to change notification settings - Fork 283
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
tidy requirements and site.cfg #3458
Conversation
@@ -23,6 +23,8 @@ | |||
# 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
@@ -24,12 +24,13 @@ | |||
# 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
@@ -23,10 +23,11 @@ | |||
# 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
@@ -27,14 +27,15 @@ | |||
# 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 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
@@ -23,11 +23,12 @@ | |||
# 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
@@ -23,7 +23,8 @@ | |||
# importing anything else. | |||
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
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
iris
now that it is exclusively Python3.