-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix Python 3 testcases [CLOUDDST-27]
After the automatically detected problems were fixed, the following issues had to be resolved to ensure that the whole test suite passes in Python 3: - in testcase 'test_get_state_with_error_other_than_enoent', '__builtin__' was changed to 'six.moves.builtins' because the built-in library was renamed in Python 3. - In Python 3, the bash command output is a bytes type, which can cause many issues since the code expects to work with a string. It was solved by decoding it as a UTF-8. This encoding was chosen because it is the most likely to be used by the invoked shell. The decoding is only done on Python 3 because the type would be changed to 'unicode' in Python 2, which is not desired either.
- Loading branch information
Showing
3 changed files
with
41 additions
and
80 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
Oops, something went wrong.