Use `python3` explicitly to reduce conflict

pull/79/head
freewind 7 years ago
parent 4c1b3baa8a
commit 2458b5302d
  1. 2
      all_tests.sh
  2. 2
      myth
  3. 4
      tests/cmline_test.py

@ -1,3 +1,3 @@
#!/bin/sh
python -m unittest discover -p "*_test.py"
python3 -m unittest discover -p "*_test.py"

@ -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

@ -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)
Loading…
Cancel
Save