Skip to content

bitcoin-util-test.py fails with python3.2 #7893

@maflcko

Description

@maflcko

Steps to reproduce:

$ cd src/
$ srcdir=. PYTHONPATH=`pwd`/test python3.2 `pwd`/test/bitcoin-util-test.py

Traceback (most recent call last):
  File "/home/marco/bitcoin/src/test/bitcoin-util-test.py", line 12, in <module>
    "bitcoin-util-test.json",buildenv)
  File "/home/marco/bitcoin/src/test/bctest.py", line 51, in bctester
    bctest(testDir, testObj, buildenv.exeext)
  File "/home/marco/bitcoin/src/test/bctest.py", line 29, in bctest
    outs = proc.communicate(input=inputData)
  File "/usr/lib/python3.2/subprocess.py", line 819, in communicate
    return self._communicate(input)
  File "/usr/lib/python3.2/subprocess.py", line 1425, in _communicate
    stdout, stderr = self._communicate_with_poll(input)
  File "/usr/lib/python3.2/subprocess.py", line 1492, in _communicate_with_poll
    input_offset += os.write(fd, chunk)
TypeError: 'str' does not support the buffer interface

This works with python3.4 and python2.7 as described in #7878 (comment). This also should work with python 3.2, but maybe I am missing something obvious...

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions