From: Noel Power Date: Thu, 10 May 2018 11:35:58 +0000 (+0100) Subject: python/samba/tests: Change native string to binary for py2/py3 compat X-Git-Tag: tdb-1.3.17~1742 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ad1728417434d437da3e207d838ab8253403359d;p=thirdparty%2Fsamba.git python/samba/tests: Change native string to binary for py2/py3 compat Signed-off-by: Noel Power Reviewed-by: Andrew Bartlett --- diff --git a/python/samba/tests/blackbox/traffic_learner.py b/python/samba/tests/blackbox/traffic_learner.py index edafc21384c..6e945ce680f 100644 --- a/python/samba/tests/blackbox/traffic_learner.py +++ b/python/samba/tests/blackbox/traffic_learner.py @@ -43,8 +43,8 @@ class TrafficLearnerTests(BlackboxTestCase): def test_no_output_file(self): """Run the script with no output file specified""" - expected = ("No output file was specified to write the model to.\n" - "Please specify a filename using the --out option.\n") + expected = (b"No output file was specified to write the model to.\n" + b"Please specify a filename using the --out option.\n") actual = self.check_output(LEARNER) self.assertEquals(expected, actual)