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

bpo-30234: Remove duplicate assertions in test_isinstance.py #1393

Merged
merged 1 commit into from May 2, 2017
Merged

bpo-30234: Remove duplicate assertions in test_isinstance.py #1393

merged 1 commit into from May 2, 2017

Conversation

DimitrisJim
Copy link
Contributor

The test file duplicates some and issubclass checks due to the distinction of classes in Python 2.

@mention-bot
Copy link

@DimitrisJim, thanks for your PR! By analyzing the history of the files in this pull request, we identified @nascheme, @warsaw and @brettcannon to be potential reviewers.

self.assertEqual(True, issubclass(int, (int, (float, int))))
self.assertEqual(True, issubclass(str, (str, (Child, NewChild, str))))
self.assertEqual(True, issubclass(str, (str, (Child, str))))
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Wasn't 100% what to do here so I simply chose to remove NewChild and keep the test.

@brettcannon brettcannon merged commit 094909a into python:master May 2, 2017
@brettcannon
Copy link
Member

Thanks!

@brettcannon brettcannon added the tests Tests in the Lib/test dir label May 2, 2017
@DimitrisJim DimitrisJim deleted the bpo30234 branch May 2, 2017 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants