Skip to content

Conversation

@disconnect3d
Copy link
Contributor

Before this change:

(pyevmasm) dc@ubuntu:~/projects/pyevmasm/tests$ PYTHONPATH=../pyevmasm python test_EVMAssembler.py
test_EVMAssembler.py:21: DeprecationWarning: generator 'disassemble_all' raised StopIteration
  self.assertTrue(all(a == b for a, b in zip(instructions1, instructions2)))
/home/dc/projects/pyevmasm/pyevmasm/evmasm.py:1007: DeprecationWarning: generator 'disassemble_all' raised StopIteration
  return '\n'.join(map(str, disassemble_all(bytecode, pc=pc, fork=fork)))
......
----------------------------------------------------------------------
Ran 6 tests in 0.003s

OK

After this change:

(pyevmasm) dc@ubuntu:~/projects/pyevmasm/tests$ PYTHONPATH=../pyevmasm python test_EVMAssembler.py ......
----------------------------------------------------------------------
Ran 6 tests in 0.002s

OK

Before this change:
```
(pyevmasm) dc@ubuntu:~/projects/pyevmasm/tests$ PYTHONPATH=../pyevmasm python test_EVMAssembler.py
test_EVMAssembler.py:21: DeprecationWarning: generator 'disassemble_all' raised StopIteration
  self.assertTrue(all(a == b for a, b in zip(instructions1, instructions2)))
/home/dc/projects/pyevmasm/pyevmasm/evmasm.py:1007: DeprecationWarning: generator 'disassemble_all' raised StopIteration
  return '\n'.join(map(str, disassemble_all(bytecode, pc=pc, fork=fork)))
......
----------------------------------------------------------------------
Ran 6 tests in 0.003s

OK
```

After this change:
```
(pyevmasm) dc@ubuntu:~/projects/pyevmasm/tests$ PYTHONPATH=../pyevmasm python test_EVMAssembler.py ......
----------------------------------------------------------------------
Ran 6 tests in 0.002s

OK
```
@disconnect3d disconnect3d merged commit 80d0193 into master Oct 22, 2018
@disconnect3d disconnect3d deleted the remove-raise-stop-iteration branch October 22, 2018 11:44
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants