Browse files

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 <>
Reviewed-by: Neal Gompa <>
Reviewed-by: loli10K <>
Signed-off-by: John Wren Kennedy <>
Signed-off-by: Brian Behlendorf <>
Closes #8096
  • Loading branch information...
behlendorf authored and madwizard committed Jan 4, 2019
1 parent 100cb8d commit 2d1d005924abfcd5904fbddbbd2aa8da9ee08540
Showing with 978 additions and 944 deletions.
  1. +851 −817 contrib/pyzfs/libzfs_core/test/
  2. +127 −127 contrib/pyzfs/libzfs_core/test/
Oops, something went wrong.

0 comments on commit 2d1d005

Please sign in to comment.