summaryrefslogtreecommitdiffstats
path: root/dovetail/tests/unit/cli/commands/test_cli_testcase.py
diff options
context:
space:
mode:
Diffstat (limited to 'dovetail/tests/unit/cli/commands/test_cli_testcase.py')
-rw-r--r--dovetail/tests/unit/cli/commands/test_cli_testcase.py6
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')