Skip to content

Remove try excepts for importing unittest.mock#462

Merged
aaronayres35 merged 4 commits into
masterfrom
remove-mock-try-except-imports
Dec 4, 2020
Merged

Remove try excepts for importing unittest.mock#462
aaronayres35 merged 4 commits into
masterfrom
remove-mock-try-except-imports

Conversation

@aaronayres35

@aaronayres35 aaronayres35 commented Dec 3, 2020

Copy link
Copy Markdown
Contributor

part of #415
unittest.mock became part of the standard library in python 3.3. Since we are dropping all python versions <3.6 we no longer need to have try ... excepts for these imports

Also, as a result of this, mock can be removed from the list of dependencies in edmtool.py.

@jwiggins jwiggins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Just some style quibbles, but otherwise LGTM

Comment thread enable/testing.py
Comment thread enable/tests/test_assistant_test_case.py
Comment thread enable/tests/tools/hover_tool_test_case.py
Comment thread kiva/fonttools/tests/test_font_manager.py

@jwiggins jwiggins left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for the updates

@aaronayres35 aaronayres35 merged commit 2e92942 into master Dec 4, 2020
@jwiggins jwiggins deleted the remove-mock-try-except-imports branch December 4, 2020 14:20
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