]> granicus.if.org Git - zfs/commit
pyzfs: python3 support (unit tests)
authorBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 4 Jan 2019 18:50:39 +0000 (10:50 -0800)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Sun, 6 Jan 2019 18:39:41 +0000 (10:39 -0800)
commit4b1c4062d050e2cfa609e1040384d1f3b5f04f52
treefcda46eb0656d4ed553f3b1d30ea75adec10a80a
parente5fb1dc586e879f016ddba24372b731971dad20c
pyzfs: python3 support (unit tests)

* Updated unit tests to be compatbile with python 2 or 3.  In most
  cases all that was required was to add the 'b' prefix to existing
  strings to convert them to type bytes for python 3 compatibility.

* There were several places where the python version need to be
  checked to remain compatible with pythong 2 and 3.  Some one
  more seasoned with Python may be able to find a way to rewrite
  these statements in a compatible fashion.

Reviewed-by: John Ramsden <johnramsden@riseup.net>
Reviewed-by: Neal Gompa <ngompa@datto.com>
Reviewed-by: loli10K <ezomori.nozomu@gmail.com>
Signed-off-by: John Wren Kennedy <john.kennedy@delphix.com>
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #8096
contrib/pyzfs/libzfs_core/test/test_libzfs_core.py
contrib/pyzfs/libzfs_core/test/test_nvlist.py