mirror of
https://github.com/python/cpython.git
synced 2026-06-05 17:31:21 +00:00
gh-149879: Fix test_httpservers on Cygwin (#150417)
This commit is contained in:
parent
3cf6ef445f
commit
71fa31454e
1 changed files with 1 additions and 1 deletions
|
|
@ -824,7 +824,7 @@ def test_get(self):
|
|||
|
||||
# chmod() doesn't work as expected on Windows, and filesystem
|
||||
# permissions are ignored by root on Unix.
|
||||
if os.name == 'posix' and os.geteuid() != 0:
|
||||
if os.name == 'posix' and os.geteuid() != 0 and sys.platform != 'cygwin':
|
||||
os.chmod(self.tempdir, 0)
|
||||
try:
|
||||
response = self.request(self.base_url + '/')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue