[test] bctest.py: Revert faa41ee #7878

pull MarcoFalke wants to merge 1 commits into bitcoin:master from MarcoFalke:Mf1604-bctestPy changing 1 files +1 −2
  1. MarcoFalke commented at 6:01 PM on April 14, 2016: member

    Fixes #7853 (comment)

    Rationale:

    • The type of input must be bytes or, if universal_newlines was True, a string. [1]
    • universal_newlines is set to True [2]

    So this pull reverts to the old behavior of using strings on py3 as well as on py2. No changes to this file were necessary, as it is already compatible. (At this point, I am not sure why I changed this in the first place)

    Edit: The reason this went unnoticed on travis was that travis still runs py2.7 but other systems will choose python3 if available since 18f05c765c800126b74a6d5b7f33cef7c9aae1b7

  2. [test] bctest.py: Revert faa41ee fa7abe0a00
  3. mruddy commented at 7:36 PM on April 14, 2016: contributor

    ACK I researched this a little before and came to the same conclusion about universal_newlines. That's what confused me about your initial change. Reassuring that we both came to the same conclusion now. Thanks for the quick fix!

  4. laanwj added the label Tests on Apr 15, 2016
  5. laanwj merged this on Apr 15, 2016
  6. laanwj closed this on Apr 15, 2016

  7. laanwj referenced this in commit 53adc8310d on Apr 15, 2016
  8. MarcoFalke deleted the branch on Apr 15, 2016
  9. codablock referenced this in commit ff9da21a94 on Sep 16, 2017
  10. codablock referenced this in commit 42e244aeba on Sep 19, 2017
  11. codablock referenced this in commit 7080c27dd6 on Dec 20, 2017
  12. MarcoFalke locked this on Sep 8, 2021

github-metadata-mirror

This is a metadata mirror of the GitHub repository bitcoin/bitcoin. This site is not affiliated with GitHub. Content is generated from a GitHub metadata backup.
generated: 2026-04-15 15:15 UTC

This site is hosted by @0xB10C
More mirrored repositories can be found on mirror.b10c.me