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

test_copy_dir_no_read_permission requires non root user by kulikjak · Pull Request #148028 · python/cpython · GitHub

Repository navigation

Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .py  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
3 changes: 2 additions & 1 deletion Lib/test/test_pathlib/test_pathlib.py
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
from test.support import infinite_recursion
from test.support import os_helper
from test.support import requires_root_user
from test.support import requires_non_root_user
from test.support.os_helper import TESTFN, FS_NONASCII, FakePath
try:
import fcntl
Expand Down Expand Up @@ -1550,7 +1551,7 @@ def raiser(*args, **kwargs):
self.assertRaises(FileNotFoundError, source.copy, target)

@unittest.skipIf(sys.platform == "win32" or sys.platform == "wasi", "directories are always readable on Windows and WASI")
@requires_root_user
@requires_non_root_user
def test_copy_dir_no_read_permission(self):
base = self.cls(self.base)
source = base / 'dirE'
Expand Down
Loading

Back | FazBrowse Home | New Git URL