-
Notifications
You must be signed in to change notification settings - Fork 9
Update tests for Python 3 #83
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
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
533c90b
to
6745886
Compare
6745886
to
2b60dbf
Compare
LeonidVas
approved these changes
Dec 30, 2021
Totktonada
reviewed
Jan 4, 2022
Totktonada
reviewed
Jan 4, 2022
Totktonada
reviewed
Jan 4, 2022
Totktonada
reviewed
Jan 4, 2022
Totktonada
reviewed
Jan 4, 2022
Totktonada
reviewed
Jan 4, 2022
Totktonada
reviewed
Jan 4, 2022
Totktonada
approved these changes
Jan 4, 2022
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 see nothing criminal :) Feel free to push.
I left some stylistic thoughts. I don't know, where you'll find youself in a best balance between effort and result, but I suggest to stop at this point and go ahead :)
Test flush-all.test.py uses PyYAML and loads YAML file with yaml.load(). However, using yaml.load() is unsafe, and library shows warning in test log: ``` <string>:19: YAMLLoadWarning: calling yaml.load() without Loader=... is deprecated, as the default Loader is unsafe. Please read https://msg.pyyaml.org/load ``` For more details see PyYAML wiki [1]. 1. https://github.com/yaml/pyyaml/wiki/PyYAML-yaml.load(input)-Deprecation
2b60dbf
to
894aca6
Compare
894aca6
to
c9e8ed4
Compare
Totktonada
reviewed
Jan 17, 2022
Convert print statement to function. In a Python 3 'print' becomes a function, see [1]. Patch makes 'print' in a regression tests compatible with Python 3. Part of #82 1. https://docs.python.org/3/whatsnew/3.0.html#print-is-a-function
c9e8ed4
to
074b9c3
Compare
|
Part of #82
Python 2 support is EOL [1] and we should support to run our python tests using Python 3.x. test-run used as test-runner for memcached already supports Python 3, see [2]. Patch enable running tests using Python 3 on CI and removes test/var/memcached symlink. 1. https://www.python.org/doc/sunset-python-2/ 2. tarantool/test-run#20 Closes #82
074b9c3
to
4accf37
Compare
Totktonada
approved these changes
Jan 18, 2022
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Closes #82