Home GnuPG

python: Check "buffer" when writing to sys.stdout for python2 compat.

Description

python: Check "buffer" when writing to sys.stdout for python2 compat.

* lang/python/tests/support.py (print_data): Add check for buffer.

When running with something like make -C lang/python check verbose=2 the
test would fail under python2, because the file objects do not have a
buffer property.

  • Signed-off-by: Tobias Mueller <muelli@cryptobitch.de>

Details

Provenance
4tmuelleAuthored on Nov 30 2016, 11:08 PM
justusCommitted on Dec 1 2016, 5:39 PM
Parents
rGPGMEPY1a0b67b6201e: python: Make Context have a repr method.
Branches
Unknown
Tags
Unknown

Event Timeline