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
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
Benjamin Peterson
43234ab685
handle sched_rr_get_interval not working on current
2011-08-02 22:19:14 -05:00
Benjamin Peterson
50ba271dbb
fix punctuation
2011-08-02 22:15:40 -05:00
Benjamin Peterson
c158158086
fix indentation
2011-08-02 22:10:55 -05:00
Benjamin Peterson
539b6c41ff
OSX doesn't check sched_get_priority_(min/max) argument
2011-08-02 22:09:37 -05:00
Benjamin Peterson
18592ca589
bsd doesn't like letting normal processes set the scheduler
2011-08-02 18:48:59 -05:00
Benjamin Peterson
c5fce4ded2
check individually for some for sched_ functions
2011-08-02 18:07:32 -05:00
Benjamin Peterson
2740af8cc4
sched.h can exist without sched affinity support
2011-08-02 17:41:34 -05:00
Benjamin Peterson
94b580d423
expose sched.h functions ( closes #12655 )
2011-08-02 17:30:04 -05:00
Ned Deily
0975dedfe0
Issue #8746 : Use tempfile module to get tempdir and randomize the
...
link file name.
2011-07-26 13:56:49 -07:00
Ned Deily
ba2eab25ff
Issue #8746 : Use tempfile module to get tempdir and randomize the
...
link file name.
2011-07-26 13:53:55 -07:00
Victor Stinner
bf816223df
Issue #12451 : Add support.create_empty_file()
...
We don't need to create a temporary buffered binary or text file object just to
create an empty file.
Replace also os.fdopen(handle).close() by os.close(handle).
2011-06-30 23:25:47 +02:00
Ned Deily
8b56c4b1b8
Issue #8746 : Correct faulty configure checks so that os.chflags() and
...
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X). Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED). Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
2011-06-28 00:13:01 -07:00
Ned Deily
3eb67d58d6
Issue #8746 : Correct faulty configure checks so that os.chflags() and
...
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X). Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED). Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
2011-06-28 00:00:28 -07:00
Ross Lagerwall
b0ae53d8a0
Issue #9344 : Add os.getgrouplist().
2011-06-10 07:30:30 +02:00
Charles-François Natali
368f34bb4b
Issue #12196 : Make os.pipe2() flags argument mandatory.
2011-06-06 19:49:47 +02:00
Charles-François Natali
239bb96540
Issue #12196 : Make test.support's requires_linux_version a decorator.
2011-06-03 12:55:15 +02:00
Charles-François Natali
d92ccb1f75
Skip test_pipe2 on Linux kernels older than 2.6.27.
2011-05-29 20:46:27 +02:00