diff --git a/test/com/facebook/buck/features/python/testdata/python_binary/cxx_resources/main.py b/test/com/facebook/buck/features/python/testdata/python_binary/cxx_resources/main.py index c95382c7bcb..ce407b693c2 100644 --- a/test/com/facebook/buck/features/python/testdata/python_binary/cxx_resources/main.py +++ b/test/com/facebook/buck/features/python/testdata/python_binary/cxx_resources/main.py @@ -1,4 +1,5 @@ import os +import sys want = "hello world!\n" @@ -6,4 +7,7 @@ os.path.join(os.path.dirname(__file__), "__cxx_resources__", "blah", "foo.dat") ) +if sys.version_info >= (3,): + got = got.decode("utf-8") + assert want == got, "expected {}, got {}".format(repr(want), repr(got))