-
Notifications
You must be signed in to change notification settings - Fork 748
Clean-up Tests #329
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
Clean-up Tests #329
Conversation
91d7629
to
4fcfc78
Compare
any reasoning for removing dependency on six? |
It wasn't necessary. This way the compatibility module is frozen for our tests. ie, won't be surprised if |
d642268
to
e791e88
Compare
@vmuriart i'm big minus one on removing dependency from six, it is third most dependent package on pypi: http://kgullikson88.github.io/blog/pypi-analysis.html it is very unlikely that we are smarter than all these folks using six. i do not want to maintain our own subset of six, unless there is unresolved issue with six affecting us. |
@denfromufa. We barely used I refactored all the checks into the compat module. I dont think its worth to keep six only for |
@vmuriart I agree, good catch on six. let's get rid of it. give me some time to review this PR after 2.2 release. |
@denfromufa no worries. I want to merge #301 first, and then work on this one. There's going to be a merge conflict after 2.2.0, but i should be able to fix it quickly. |
6204c29
to
a8c7b15
Compare
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.
Very nice :)
I read through, but I'll have to test this on my machine before approving.
Codecov Report@@ Coverage Diff @@
## master #329 +/- ##
==========================================
+ Coverage 61.1% 61.45% +0.35%
==========================================
Files 61 61
Lines 5324 5324
Branches 897 897
==========================================
+ Hits 3253 3272 +19
+ Misses 1832 1817 -15
+ Partials 239 235 -4
Continue to review full report at Codecov.
|
Ensure they are using the same functions in py2/py3 Ensure py2/py3 compat Misc. cleanup Add _compat The unittest module has been also updated to use the 'default' filter while running tests. DeprecationWarnings are ignored by default https://docs.python.org/3.3/library/warnings.html#updating-code-for-new-versions-of-python https://docs.python.org/3.3/library/warnings.html#default-warning-filters
* Remove unsupported entry points * Adds reference to Python.Test by default for all tests * Remove redundant add_reference * Avoid some implicit AddReferences that were being done Not all tests added reference to Python.Test consistently. Solve this by making `run_test` the only supported method.
Remove six.u(...), six.b(...) Not needed since dropped older python versions
- Fix py2/py3 range/zip behavior - Ensure same functions being used - Fix Exception/System.Exception name clashes
test_exceptions: Add exc_info test & fix Exception nameclash
Fix max min nameclash
- Replace type(()) with tuple to clarify intent
Can mess with test discovery
@filmor did you get a chance to check this out? |
Yep, seems fine on my machine ;) |
You probably should have squashed this before merging :) |
I was debating it, there are some benefits to squashing (compress history), but at the same time there are some losses when going back threw commit history and trying to understand why a file was added/removed. Personally I clean-up the history before submitting the pull request. That way it has my logical units of change, without having my 10,000 commits saying "FIXUP! typo" 👍 |
What does this implement/fix? Explain your changes.
six
Does this close any currently open issues?
No
Any other comments?
Recommend
squash&merge
. Left as separate commits for anyone that wants to see the logic for some of the changes.Checklist
Check all those that are applicable and complete.
AUTHORS
CHANGELOG