Skip to content

Conversation

native-api
Copy link
Contributor

Pycharm caught this as "overriden method without use".

@bedevere-bot bedevere-bot added tests Tests in the Lib/test dir awaiting review labels Mar 2, 2019
@native-api native-api changed the title Removed duplicate test function Remove duplicate test function in test_site Mar 2, 2019
@native-api native-api force-pushed the test_site_duplicate branch from 6db0fa0 to 15962e3 Compare March 3, 2019 00:59
@tirkarthi
Copy link
Member

I am not sure of test__getuserbase since extra underscore subtly looks same like test_getuserbase as noted in code comment. This was added with a8f8d5b . cc: @methane

@native-api native-api changed the title Remove duplicate test function in test_site Duplicate test function in test_site Mar 3, 2019
@native-api
Copy link
Contributor Author

@methane et al
As per #12140 (comment) , it turns out, the first test_getuserbase tests _getuserbase while the second one tests getuserbase.
So it doesn't make sense to merge them.

@tirkarthi
Copy link
Member

tirkarthi commented Mar 3, 2019

I guess this change can be backported since test is present in 3.7 too.

@miss-islington
Copy link
Contributor

Thanks @native-api for the PR, and @methane for merging it 🌮🎉.. I'm working now to backport this PR to: 3.7.
🐍🍒⛏🤖

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Mar 3, 2019
(cherry picked from commit 45d8d24)

Co-authored-by: native-api <ivan_pozdeev@mail.ru>
@bedevere-bot
Copy link

GH-12152 is a backport of this pull request to the 3.7 branch.

miss-islington added a commit that referenced this pull request Mar 3, 2019
(cherry picked from commit 45d8d24)

Co-authored-by: native-api <ivan_pozdeev@mail.ru>
@native-api native-api deleted the test_site_duplicate branch March 15, 2019 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip issue skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

8 participants