8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 49284d9 commit 9eb17bbCopy full SHA for 9eb17bb
Lib/test/test_shutil.py
@@ -1848,12 +1848,13 @@ def test_pathext(self):
1848
rv = shutil.which(program, path=self.temp_dir)
1849
self.assertEqual(rv, temp_filexyz.name)
1850
1851
+ # Issue 40592: See https://bugs.python.org/issue40592
1852
@unittest.skipUnless(sys.platform == "win32", 'test specific to Windows')
1853
def test_pathext_with_empty_str(self):
1854
ext = ".xyz"
1855
temp_filexyz = tempfile.NamedTemporaryFile(dir=self.temp_dir,
1856
prefix="Tmp2", suffix=ext)
- os.chmod(temp_filexyz.name, stat.S_IXUSR)
1857
+ os.chmod(temp_filexyz.name, stat.S_IXUSR | stat.S_IWUSR)
1858
self.addCleanup(temp_filexyz.close)
1859
1860
# strip path and extension
0 commit comments