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

Add check for Python 3.5+ in test script #299

Merged

Conversation

@aneeshusa
Copy link
Member

aneeshusa commented Apr 5, 2016

The test script uses features introduced in Python 3.5 (namely
os.path.commonpath), but the shebang only specifies python3. Because
Python3.5 is fairly new, it's likely that python3 is not yet Python 3.5
(or later) for many people, so explicitly check for this.

This occured on Travis, requiring an explicit 'python: 3.5' config,
which is what spurred this commit.


This change is Reviewable

@bors-servo
Copy link
Contributor

bors-servo commented Apr 7, 2016

The latest upstream changes (presumably #307) made this pull request unmergeable. Please resolve the merge conflicts.

The test script uses features introduced in Python 3.5 (namely
os.path.commonpath), but the shebang only specifies python3. Because
Python3.5 is fairly new, it's likely that python3 is not yet Python 3.5
(or later) for many people, so explicitly check for this.

This occured on Travis, requiring an explicit 'python: 3.5' config,
which is what spurred this commit.
@aneeshusa aneeshusa force-pushed the aneeshusa:require-python-3.5-for-test-script branch from 4f4d17c to 702cae5 Apr 7, 2016
@aneeshusa
Copy link
Member Author

aneeshusa commented Apr 7, 2016

Rebased.

@edunham
Copy link
Contributor

edunham commented May 5, 2016

@bors-servo r+

Relatedly, ought we be running test.py in Travis?

@bors-servo
Copy link
Contributor

bors-servo commented May 5, 2016

📌 Commit 702cae5 has been approved by edunham

@bors-servo
Copy link
Contributor

bors-servo commented May 5, 2016

Testing commit 702cae5 with merge c1d7ff8...

bors-servo added a commit that referenced this pull request May 5, 2016
…edunham

Add check for Python 3.5+ in test script

The test script uses features introduced in Python 3.5 (namely
os.path.commonpath), but the shebang only specifies python3. Because
Python3.5 is fairly new, it's likely that python3 is not yet Python 3.5
(or later) for many people, so explicitly check for this.

This occured on Travis, requiring an explicit 'python: 3.5' config,
which is what spurred this commit.

<!-- Reviewable:start -->
---
This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/saltfs/299)
<!-- Reviewable:end -->
@aneeshusa
Copy link
Member Author

aneeshusa commented May 5, 2016

@edunham test.py is getting run on Travis, via the dispatch.sh script.

@bors-servo
Copy link
Contributor

bors-servo commented May 5, 2016

☀️ Test successful - travis

@bors-servo bors-servo merged commit 702cae5 into servo:master May 5, 2016
1 of 2 checks passed
1 of 2 checks passed
homu Testing commit 702cae5 with merge c1d7ff8...
Details
continuous-integration/travis-ci/pr The Travis CI build passed
Details
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

3 participants
You can’t perform that action at this time.