Skip to content
Snippets Groups Projects
Commit bb509f39d387 authored by Gregory Szorc's avatar Gregory Szorc
Browse files

contrib: require Python 3.6 for byteify-strings.py

This script makes use of `token.COMMENT`, which apparently
isn't present until Python 3.6. So make the script and its
test conditional on Python 3.6.
parent 2d31ef3fb494
No related branches found
No related tags found
No related merge requests found
......@@ -339,7 +339,7 @@
if __name__ == '__main__':
if sys.version_info.major < 3:
print('This script must be run under Python 3.')
if sys.version_info[0:2] < (3, 6):
print('This script must be run under Python 3.6+')
sys.exit(3)
main()
#require py3
#require py36
$ byteify_strings () {
> $PYTHON "$TESTDIR/../contrib/byteify-strings.py" "$@"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment