From 683dab11024f9a3fff2e54a90866c3c9ef8095ab Mon Sep 17 00:00:00 2001 From: Joseph Sutton Date: Thu, 17 Aug 2023 11:13:50 +1200 Subject: [PATCH] python:tests: Save files with intended contents MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit We presumably here meant to use the variable ‘contents’, not ‘test_contents’. Signed-off-by: Joseph Sutton Reviewed-by: Andrew Bartlett --- python/samba/tests/smb.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/samba/tests/smb.py b/python/samba/tests/smb.py index e43b030adcc..46080c79439 100644 --- a/python/samba/tests/smb.py +++ b/python/samba/tests/smb.py @@ -109,7 +109,7 @@ class SMBTests(samba.tests.TestCase): for i in range(1, 4): contents = "I'm file {0} in dir {1}!".format(i, subdir) path = self.make_sysvol_path(subdir, "file-{0}.txt".format(i)) - self.smb_conn.savefile(path, test_contents.encode('utf8')) + self.smb_conn.savefile(path, contents.encode('utf8')) filepaths.append(path) # sanity-check these dirs/files exist -- 2.11.4.GIT