Skip to content

Conversation

@AkioNak
Copy link
Contributor

@AkioNak AkioNak commented Feb 19, 2019

Use test_framework.util.bytes_to_hex_str() instead of bytes.hex() that new in Python 3.5 to support minimum version of Python(test).

test/functional/test_framework/wallet_util.py is also reported to have '.hex()' in #15397,
but it does not matter because it calls CScript.hex() defined in wallet_util.py.

Use test_framework.util.bytes_to_hex_str() instead of bytes.hex() that
new in Python 3.5, to support minimum version of Python(test).
@fanquake fanquake added the Tests label Feb 19, 2019
@fanquake fanquake requested a review from maflcko February 19, 2019 08:50
@maflcko maflcko added this to the 0.18.0 milestone Feb 19, 2019
@maflcko
Copy link
Member

maflcko commented Feb 19, 2019

Let's merge this after the branch off to 0.18

@laanwj
Copy link
Member

laanwj commented Feb 19, 2019

Let's merge this after the branch off to 0.18

To be clear: you want to merge this to the 0.18 branch after there is a 0.18 branch?

@maflcko
Copy link
Member

maflcko commented Feb 19, 2019

Yes, there is no reason to have this in the 0.19 brach

@laanwj
Copy link
Member

laanwj commented Feb 19, 2019

OK makes sense—let's ask @AkioNak to change the target branch when it's there

@Sjors
Copy link
Member

Sjors commented Feb 20, 2019

tACK 1a062b8. I'm OK with merging it into the 0.18 branch. Although it took me some time to find this after running into these test failures myself.

@maflcko
Copy link
Member

maflcko commented Feb 20, 2019

Ok, it appears at least two devs are using pyenv and would be unable to run the tests at all for the next two weeks. Going to merge this now and then revert in #14954

maflcko pushed a commit to maflcko/bitcoin-core that referenced this pull request Feb 20, 2019
1a062b8 tests: remove byte.hex() to keep compatibility (Akio Nakamura)

Pull request description:

  Use ```test_framework.util.bytes_to_hex_str()``` instead of ```bytes.hex()``` that new in Python 3.5 to support minimum version of Python(test).

  ```test/functional/test_framework/wallet_util.py``` is also reported to have '\.hex()' in bitcoin#15397,
  but it does not matter because it calls CScript.hex() defined in wallet_util.py.

Tree-SHA512: 1019212e965f0848d235fab4da11959dffa42e8adfcd41216c10795cfc63c804b5deb5a3317f25d29940b9dcf088ab76fe3fa80d2679dc19f5f482dc5bde3283
@maflcko maflcko merged commit 1a062b8 into bitcoin:master Feb 20, 2019
@AkioNak AkioNak deleted the keep_compatiblity branch February 24, 2019 05:21
@bitcoin bitcoin locked as resolved and limited conversation to collaborators Dec 16, 2021
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants