FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-149879: Fix test_httpservers on Cygwin (#150417) · python/cpython@71fa314 · GitHub

Repository navigation

Commit 71fa314

Browse files
authored
gh-149879: Fix test_httpservers on Cygwin (#150417)
1 parent 3cf6ef4 commit 71fa314

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎Lib/test/test_httpservers.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -824,7 +824,7 @@ def test_get(self):
824824

825825
# chmod() doesn't work as expected on Windows, and filesystem
826826
# permissions are ignored by root on Unix.
827-
if os.name == 'posix' and os.geteuid() != 0:
827+
if os.name == 'posix' and os.geteuid() != 0 and sys.platform != 'cygwin':
828828
os.chmod(self.tempdir, 0)
829829
try:
830830
response = self.request(self.base_url + '/')

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL