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 experimental Python 3.8-dev to test with #337
Conversation
Python 3.2+ deprecated cgi.escape() for html.escape(). And in 3.8 cgi.escape() has been completely removed. This patch conditional makes use of html.escape() for 3.2 and higher. Fixes issue #338 Signed-off-by: Eric Brown <browne@vmware.com>
This patch adds the prerelease version of Python 3.8 to the testing. Although Bandit is unlikely to have compile errors with any future version, this step allows us to get a head start on any that may arise.
.travis.yml
Outdated
@@ -25,6 +25,10 @@ matrix: | |||
env: TOXENV=py37 | |||
dist: xenial | |||
sudo: true | |||
- python: 3.8-dev | |||
env: TOXENV=py |
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.
Should this py38
?
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.
Yeah, I tried py38, but apparently tox doesn't yet support py38. But the docs do say by using "py" it will inherit a tox env for whatever Python interpreter is used.
https://tox.readthedocs.io/en/latest/example/basic.html#a-simple-tox-ini-default-environments
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.
I also opened an issue with tox: tox-dev/tox#912
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.
Looks like [0] merged, this should be good.
[0] tox-dev/tox#913
This patch adds the prerelease version of Python 3.8 to the testing.
Although Bandit is unlikely to have compile errors with any future
version, this step allows us to get a head start on any that may
arise.