8000 Changed os.chmod from 'S_IXUSR' to 'S_IXUSR | S_IWUSR' · python/cpython@9eb17bb · GitHub
[go: up one dir, main page]

Skip to content

Commit 9eb17bb

Browse files
author
Christopher Marchfelder
committed
Changed os.chmod from 'S_IXUSR' to 'S_IXUSR | S_IWUSR'
1 parent 49284d9 commit 9eb17bb

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Lib/test/test_shutil.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1848,12 +1848,13 @@ def test_pathext(self):
18481848
rv = shutil.which(program, path=self.temp_dir)
18491849
self.assertEqual(rv, temp_filexyz.name)
18501850

1851+
# Issue 40592: See https://bugs.python.org/issue40592
18511852
@unittest.skipUnless(sys.platform == "win32", 'test specific to Windows')
18521853
def test_pathext_with_empty_str(self):
18531854
ext = ".xyz"
18541855
temp_filexyz = tempfile.NamedTemporaryFile(dir=self.temp_dir,
18551856
prefix="Tmp2", suffix=ext)
1856-
os.chmod(temp_filexyz.name, stat.S_IXUSR)
1857+
os.chmod(temp_filexyz.name, stat.S_IXUSR | stat.S_IWUSR)
18571858
self.addCleanup(temp_filexyz.close)
18581859

18591860
# strip path and extension

0 commit comments

Comments
 (0)
0