diff --git a/all_tests.sh b/all_tests.sh index bd3c4978..a398a2bd 100755 --- a/all_tests.sh +++ b/all_tests.sh @@ -1,3 +1,3 @@ #!/bin/sh -python -m unittest discover -p "*_test.py" +python3 -m unittest discover -p "*_test.py" diff --git a/myth b/myth index a4064dd6..25293499 100755 --- a/myth +++ b/myth @@ -1,4 +1,4 @@ -#!/usr/bin/env python +#!/usr/bin/env python3 """mythril.py: Bug hunting on the Ethereum blockchain http://www.github.com/b-mueller/mythril diff --git a/tests/cmline_test.py b/tests/cmline_test.py index 93e044b5..08fd80cc 100644 --- a/tests/cmline_test.py +++ b/tests/cmline_test.py @@ -10,10 +10,10 @@ class CommandLineToolTestCase(unittest.TestCase): script_path = os.path.dirname(os.path.realpath(__file__)) myth = os.path.join(script_path, '..', 'myth') - out = check_output([myth,'-d','-c', '0x5050']).decode("UTF-8") + out = check_output(['python3', myth,'-d','-c', '0x5050']).decode("UTF-8") self.assertEqual('0 POP\n1 POP\n', out) - out = check_output([myth,'-d', os.path.join(script_path,'testdata','metacoin.sol')]).decode("UTF-8") + out = check_output(['python3', myth,'-d', os.path.join(script_path,'testdata','metacoin.sol')]).decode("UTF-8") self.assertIn('0 PUSH1 0x60\n2 PUSH1 0x40', out) \ No newline at end of file