diff options
| author | Larry Hastings <larry@hastings.org> | 2012-06-22 23:30:09 (GMT) | 
|---|---|---|
| committer | Larry Hastings <larry@hastings.org> | 2012-06-22 23:30:09 (GMT) | 
| commit | 9cf065cfdc4245ea7e31edcb2e6ede0cea47d148 (patch) | |
| tree | 22d8450865a023586034d555ae72e3753f95e84c /Lib/test/support.py | |
| parent | f0f4742b495554238d1204ce0002c1ef1ba23507 (diff) | |
| download | cpython-9cf065cfdc4245ea7e31edcb2e6ede0cea47d148.zip cpython-9cf065cfdc4245ea7e31edcb2e6ede0cea47d148.tar.gz cpython-9cf065cfdc4245ea7e31edcb2e6ede0cea47d148.tar.bz2  | |
Issue #14626: Large refactoring of functions / parameters in the os module.
Many functions now support "dir_fd" and "follow_symlinks" parameters;
some also support accepting an open file descriptor in place of of a path
string.  Added os.support_* collections as LBYL helpers.  Removed many
functions only previously seen in 3.3 alpha releases (often starting with
"f" or "l", or ending with "at").  Originally suggested by Serhiy Storchaka;
implemented by Larry Hastings.
Diffstat (limited to 'Lib/test/support.py')
| -rw-r--r-- | Lib/test/support.py | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/support.py b/Lib/test/support.py index 3ff1df5..ddd3ab6 100644 --- a/Lib/test/support.py +++ b/Lib/test/support.py @@ -1703,8 +1703,8 @@ def can_xattr():                  try:                      # TESTFN & tempfile may use different file systems with                      # different capabilities -                    os.fsetxattr(tmp_fp, b"user.test", b"") -                    os.fsetxattr(fp.fileno(), b"user.test", b"") +                    os.setxattr(tmp_fp, b"user.test", b"") +                    os.setxattr(fp.fileno(), b"user.test", b"")                      # Kernels < 2.6.39 don't respect setxattr flags.                      kernel_version = platform.release()                      m = re.match("2.6.(\d{1,2})", kernel_version)  | 
