]> git.ipfire.org Git - thirdparty/samba.git/commitdiff
python/samba/tests: Change native string to binary for py2/py3 compat
authorNoel Power <noel.power@suse.com>
Thu, 10 May 2018 11:35:58 +0000 (12:35 +0100)
committerAndrew Bartlett <abartlet@samba.org>
Wed, 5 Sep 2018 21:27:13 +0000 (23:27 +0200)
Signed-off-by: Noel Power <noel.power@suse.com>
Reviewed-by: Andrew Bartlett <abartlet@samba.org>
python/samba/tests/blackbox/traffic_learner.py

index edafc21384cfad127cca68b47dc85aee0bc35fef..6e945ce680f2e2c2a6e6a29b07bd0daf07484c87 100644 (file)
@@ -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)