From d77ed5f4bc7c837aaffc633821e3d13852fceafa Mon Sep 17 00:00:00 2001 From: Patrick Steinhardt Date: Wed, 22 May 2019 21:21:43 +0200 Subject: [PATCH] test: use Python3-compatible way to specify octal numbers Support for zero-prefixed octal numbers ("0755") has been removed in Python 3 in favor of the zero-oh-prefix ("0o755"). As the latter has been introduced in Python 2.6, we can safely switch all occurrences of the former with the new way to improve compatibility with Python 3. --- test/zziptests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/zziptests.py b/test/zziptests.py index 3443c9b..fe16601 100644 --- a/test/zziptests.py +++ b/test/zziptests.py @@ -3482,7 +3482,7 @@ class ZZipTest(unittest.TestCase): setstub="./zzipsetstub" + exeext run = shell("{setstub} {exefile} {libstub}".format(**locals())) self.assertFalse(run.returncode) - os.chmod(exefile, 0755) + os.chmod(exefile, 0o755) # now ask the new .exe to show some of its own content run = shell("./{exefile} {txtfile_name}".format(**locals())) self.assertFalse(run.returncode) -- 2.40.0