diff options
author | Panagiotis Karalis <panos.pkaralis@gmail.com> | 2019-08-07 10:46:52 +0300 |
---|---|---|
committer | Dan Xu <xudan16@huawei.com> | 2019-09-16 06:45:00 +0000 |
commit | 005d868d68dbb0e70b3f92a685ea269c4f646fd7 (patch) | |
tree | dcb1f0f64606b58f0c33e9dc96131fdbe4ed6398 /dovetail/tests/unit/cli/commands/test_cli_testcase.py | |
parent | f0c44b1ae02ffbdb87da81dac7b6754c641d8c04 (diff) |
Move the proj to python3
The aim of this patch is to upgrade python version
of this project from python2 to python3.
Signed-off-by: Panagiotis Karalis <panos.pkaralis@gmail.com>
Change-Id: I3d3ef01176fda1b23a0542a24625be2f3368c40e
Diffstat (limited to 'dovetail/tests/unit/cli/commands/test_cli_testcase.py')
-rw-r--r-- | dovetail/tests/unit/cli/commands/test_cli_testcase.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/dovetail/tests/unit/cli/commands/test_cli_testcase.py b/dovetail/tests/unit/cli/commands/test_cli_testcase.py index 2a1feb64..324db640 100644 --- a/dovetail/tests/unit/cli/commands/test_cli_testcase.py +++ b/dovetail/tests/unit/cli/commands/test_cli_testcase.py @@ -34,7 +34,7 @@ class CliTestcaseTesting(unittest.TestCase): testcase.run(options) mock_path.dirname.assert_called_once() - cmd = 'python %s/run.py %s' % (repo_dir, options) + cmd = 'python3 %s/run.py %s' % (repo_dir, options) mock_utils.exec_cmd.assert_called_once_with( cmd, exit_on_error=True, exec_msg_on=False, info=True) @@ -60,7 +60,7 @@ class CliTestcaseTesting(unittest.TestCase): mock_click.echo.assert_called_once_with( 'testcase %s not exist or not supported' % testcase_name) - @patch('__builtin__.open') + @patch('builtins.open') @patch('dovetail.cli.commands.cli_testcase.constants') @patch('os.path') @patch('dovetail.cli.commands.cli_testcase.click') @@ -85,7 +85,7 @@ class CliTestcaseTesting(unittest.TestCase): mock_path.isfile.assert_called_once_with(testcase_whole_path) mock_click.echo.assert_called_once_with(file_data) - @patch('__builtin__.open') + @patch('builtins.open') @patch('dovetail.cli.commands.cli_testcase.constants') @patch('os.path') @patch('dovetail.cli.commands.cli_testcase.click') |