Skip to content
This repository has been archived by the owner on Jun 14, 2022. It is now read-only.

Test on Python 3.6 in allow_failures mode #11

Merged
merged 1 commit into from
May 30, 2018

Conversation

cclauss
Copy link
Contributor

@cclauss cclauss commented May 30, 2018

Flake8 finds different errors on Python 2 and Python 3. In general, if code passes on Python 3 then it will probably pass on Python 2 as well. But the opposite is not true. My recommendation would be that you run on both Python 2 and 3 just to be sure or that you run on Python 3 only. Here we have set Python 3 testing to run in allow_failures mode so that we can see the open issues but the overall test will still be green.

https://travis-ci.org/kezhenxu94/house-renting/builds/385662266

Flake8 [finds different errors](http://flake8.pycqa.org/en/latest/user/invocation.html) on Python 2 and Python 3.  In general, if code passes on Python 3 then it will probably pass on Python 2 as well.  But the opposite is not true.  My recommendation would be that you run on both Python 2 and 3 just to be sure or that you run on Python 3 only.  Here we have set Python 3 testing to run in __allow_failures__ mode so that we can see the open issues but the overall test will still be green.
@kezhenxu94
Copy link
Owner

My original thought was checking out a new branch to do the migration to Python 3, and using separate .travis.yml to test on the two branches individually, I'm quite new to travis-ci, your solution would be a better choice I think.

@kezhenxu94 kezhenxu94 merged commit ccd4e37 into kezhenxu94:master May 30, 2018
@cclauss cclauss deleted the patch-1 branch May 30, 2018 12:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants