mirror of
https://github.com/samba-team/samba.git
synced 2025-07-29 15:42:04 +03:00
python tests: fix format() strings for Python 2.6
Python 2.6 wants "{0}".format(x), not "{}".format(x). Signed-off-by: Douglas Bagnall <douglas.bagnall@catalyst.net.nz> Reviewed-by: Andrew Bartlett <abartlet@samba.org>
This commit is contained in:
committed by
Andrew Bartlett
parent
3b94d31d24
commit
198bcfbac3
@ -111,7 +111,7 @@ class DomainBackupOfflineCmp(SambaToolCmdTest, TestCaseInTempDir):
|
||||
fn.endswith(".tar.bz2")]
|
||||
if len(tar_files) != 1:
|
||||
raise CommandError("expected domain backup to create one tar" +
|
||||
" file but got {}".format(len(tar_files)))
|
||||
" file but got {0}".format(len(tar_files)))
|
||||
|
||||
backup_file = os.path.join(prov_dir, tar_files[0])
|
||||
return prov_dir, backup_file
|
||||
|
Reference in New Issue
Block a user