Commit Graph

117 Commits

Author SHA1 Message Date
Serhiy Storchaka 7908068627 Issue #18702: All skipped tests now reported as skipped. 2013-11-03 21:31:18 +02:00
Serhiy Storchaka 9d202ba252 Issue #17248: Fix os.*chown() testing when user is in root group. 2013-02-21 14:34:59 +02:00
Serhiy Storchaka a2964b3175 Issue #17248: Fix os.*chown() testing when user is in root group. 2013-02-21 14:34:36 +02:00
Serhiy Storchaka 43d9fa2167 Issue #17248: Fix os.*chown() testing when user has group root. 2013-02-20 19:48:47 +02:00
Serhiy Storchaka b3d62cefc7 Issue #17248: Fix os.*chown() testing when user has group root. 2013-02-20 19:48:22 +02:00
Serhiy Storchaka f0602062b6 Issue #15301: Enhance os.*chown() testing. Based on patch by Larry Hastings. 2013-02-20 19:42:31 +02:00
Serhiy Storchaka 54db2fd5d0 Issue #15301: Enhance os.*chown() testing. Based on patch by Larry Hastings. 2013-02-20 19:40:25 +02:00
Serhiy Storchaka e4ad8aacd1 Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-12 09:24:16 +02:00
Serhiy Storchaka 7cf5599346 Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-10 21:56:49 +02:00
Ned Deily 6d29628d6b Issue #16698: merge from 3.2 2013-02-02 15:12:59 -08:00
Ned Deily 028915e6ea Issue #16698: Skip posix test_getgroups when built with OS X
deployment target prior to 10.6.
2013-02-02 15:08:52 -08:00
Serhiy Storchaka 9101e23ff6 Issue #15989: Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.

This is a backport of changesets 13e2e44db99d and 525407d89277.
2013-01-19 12:41:45 +02:00
Charles-François Natali c78de46912 Fix test_posix failure on NetBSD buildbots: sched_setparam() and
sched_setscheduler() can fail with EINVAL if the process scheduling policy is
neither SCHED_FIFO nor SCHED_RR.
2013-01-13 14:10:37 +01:00
Serhiy Storchaka a2ad5c3ad1 Issue #15972: Fix error messages when os functions expecting a file name or
file descriptor receive the incorrect type.
2013-01-07 23:13:46 +02:00
Andrew Svetlov 5b89840d9c Issue #16714: use 'raise' exceptions, don't 'throw'.
Patch by Serhiy Storchaka.
2012-12-18 21:26:36 +02:00
Ross Lagerwall a0b315f5f7 Issue #16661: Fix the os.getgrouplist() test by not assuming that it
gives the same output as "id -G".
2012-12-13 15:20:26 +00:00
Benjamin Peterson b29614e047 compare singletons by identity not equality (closes #16712)
Patch from Serhiy Storchaka.
2012-10-09 11:16:03 -04:00
Trent Nelson 75959cf247 Issue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.

(Note: this commit is a manual merge of 78699:019a2390b014 as both
_test_chflags_regular_file and test_lchflags_symlink differ between
3.2 and default.)
2012-08-21 23:59:31 +00:00
Trent Nelson ee253ebf62 Issue #15747: skip chflags UF_IMMUTABLE tests if EOPNOTSUPP is raised.
This is necessary for ZFS systems, which don't support UF_IMMUTABLE.
2012-08-21 23:41:43 +00:00
Antoine Pitrou 848698727f Issue #12655: Instead of requiring a custom type, os.sched_getaffinity and
os.sched_setaffinity now use regular sets of integers to represent the
CPUs a process is restricted to.
2012-08-04 16:16:35 +02:00
Jesus Cea 5323173dee Closes #15514: Correct __sizeof__ support for cpu_set 2012-08-03 14:18:11 +02:00
Jesus Cea d46f7d209b Cope with OSs lying - #10142: Support for SEEK_HOLE/SEEK_DATA 2012-07-07 14:56:04 +02:00
Georg Brandl 969288e488 Use ValueError, not RuntimeError for a utime flag combination illegal on some systems. 2012-06-26 09:25:44 +02:00
Jesus Cea 2a193a818a Skip test in freebsd entirely - Kernel bug in freebsd7/8/9 - #10142: Support for SEEK_HOLE/SEEK_DATA 2012-06-25 13:45:38 +02:00
Larry Hastings fdaea06d3c Issue #15176: Clarified behavior, documentation, and implementation
of os.listdir().
2012-06-25 04:42:23 -07:00
Hynek Schlawack f841e42a98 Fix whitespace 2012-06-24 09:51:46 +02:00
Jesus Cea 60c13ddd9b Skip the test only if neccesary - Kernel bug in freebsd9 - #10142: Support for SEEK_HOLE/SEEK_DATA 2012-06-23 02:58:14 +02:00
Jesus Cea 9d874866f7 Kernel bug in freebsd9 - #10142: Support for SEEK_HOLE/SEEK_DATA 2012-06-23 02:55:36 +02:00
Larry Hastings 90867a5aba Issue #14626: Fix buildbot issues on FreeBSD (AMD64). (Fingers crossed.) 2012-06-22 17:01:41 -07:00
Larry Hastings 9cf065cfdc 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.
2012-06-22 16:30:09 -07:00
Jesus Cea 9436361e4c Closes #10142: Support for SEEK_HOLE/SEEK_DATA 2012-06-22 18:32:07 +02:00
Charles-François Natali 360b3c21f5 os.popen().close() returns None on success, not 0... 2012-05-02 20:50:13 +02:00
Charles-François Natali 39687ee9db os.popen().close() returns None on success, not 0... 2012-05-02 20:49:14 +02:00
Charles-François Natali d59240de83 Issue #14698: Make test_posix more robust when the current UID doesn't have an
associated pwd entry.
2012-05-02 20:04:40 +02:00
Charles-François Natali e8a255a5a2 Issue #14698: Make test_posix more robust when the current UID doesn't have an
associated pwd entry.
2012-05-02 20:01:38 +02:00
Jesus Cea 990eff0776 Backing out 86dc014cdd74. Not ready yet 2012-04-26 17:05:31 +02:00
Jesus Cea 2b47f0a23f Close #10142: Support for SEEK_HOLE/SEEK_DATA 2012-04-26 16:39:35 +02:00
Charles-François Natali fba807ac44 Issue #5113: Fix a test_posix failure on HP-UX, where non-root users can
chown() to root under certain circumstances.
2012-04-17 19:58:50 +02:00
Charles-François Natali ab2d58eefa Issue #5113: Fix a test_posix failure on HP-UX, where non-root users can
chown() to root under certain circumstances.
2012-04-17 19:48:35 +02:00
Charles-François Natali 7794090251 Following Nick's suggestion, rename posix.fdlistdir() to posix.flistdir(), to
be consistent with other functions accepting file descriptors (fdlistdir() was
added in 3.3, so hasn't been released yet).
2012-02-06 19:54:48 +01:00
Charles-François Natali 76961faaa0 Issue #13757: Change os.fdlistdir() so that it duplicates the passed file
descriptor (instead of closing it).
2012-01-10 20:25:09 +01:00
Charles-François Natali 7546ad327d Issue #13739: In os.listdir(), rewind the directory stream (so that listdir()
can be called again on the same open file).
2012-01-08 18:34:06 +01:00
Florent Xicluna e41f0de84d Merge 3.2, fix typos. 2011-11-11 19:39:25 +01:00
Brian Curtin 569b494320 Fix #13327. utimensat now has the atime and mtime arguments set as optional,
defaulting to None like the other utimes family members. It now accepts
keyword arguments because, unlike other other functions in the family,
it has a `flags` value at the end of the argument list (which
retains its 0 default).
2011-11-07 16:09:20 -06:00
Brian Curtin c1b65d1831 Fix 13327. Remove explicit None arguments from futimes, futimens, futimesat,
and lutimes.
2011-11-07 14:18:54 -06:00
Victor Stinner 8b905bd9d4 Issue #13226: Add RTLD_xxx constants to the os module. These constants can by
used with sys.setdlopenflags().
2011-10-25 13:34:04 +02:00
Jesus Cea ceb5d169e9 Better fix for #12763: test_posix failure on OpenIndiana 2011-09-10 01:16:55 +02:00
Charles-François Natali ea0d5fcb4a Issue #12871: sched_get_priority_(min|max) might not be defined even though
<sched.h> is available (most notably on OpenBSD when built without pthread):
add an explicit configure check.
2011-09-06 19:03:35 +02:00
Charles-François Natali 7b911cb621 Issue #12783: Fix test_posix failures on FreeBSD buildbots, due to
sched_setparam() returning EINVAL for processes with SCHED_OTHER scheduling
policy.
2011-08-21 12:41:43 +02:00
Benjamin Peterson ae6ae025d1 some *nixes decided not to call init process 1 (closes #12763) 2011-08-16 17:46:04 -05:00