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
Charles-François Natali
daafdd5bea
Issue #12196 : Add pipe2() to the os module.
2011-05-29 20:07:40 +02:00
Victor Stinner
e36f37525b
Issue #12105 : test_posix skips test_oscloexec() on Linux < 2.6.23
2011-05-24 00:29:43 +02:00
Victor Stinner
cc6491a0fa
Issue #12105 : test_posix, add the value of O_CLOEXEC in the error message
2011-05-23 12:54:52 +02:00
Charles-François Natali
1e045b1831
Issue #12105 : Add O_CLOEXEC to the os module.
2011-05-22 20:42:32 +02:00
Antoine Pitrou
68c9592d33
Call reap_children() at the end of test_posix
2011-03-20 17:33:57 +01:00
Ross Lagerwall
dedf6cf387
Issue #11615 : Fix sporadic buildbot failures related to #10812 .
2011-03-20 18:27:05 +02:00
Ross Lagerwall
7807c3545d
Issue #10812 : Add some extra posix functions to the os module.
2011-03-17 20:20:30 +02:00
Antoine Pitrou
8250e23abd
Issue #10755 : Add the posix.fdlistdir() function. Patch by Ross Lagerwall.
2011-02-25 23:41:16 +00:00
Antoine Pitrou
f65132de3d
Issue #4761 : Add the *at() family of functions (openat(), etc.) to the posix
...
module. Patch by Ross Lagerwall.
2011-02-25 23:25:17 +00:00
Antoine Pitrou
318b8f35fe
Issue #10822 : Fix test_posix:test_getgroups failure under Solaris. Patch
...
by Ross Lagerwall.
2011-01-12 18:45:27 +00:00
Ezio Melotti
b3aedd4862
#9424 : Replace deprecated assert* methods in the Python test suite.
2010-11-20 19:04:17 +00:00
Antoine Pitrou
e5a9101519
Issue #9581 : Fix non-working PosixGroupsTester test case
...
(it only runs as root, which is why nobody bothered about the failure)
2010-09-04 17:32:06 +00:00
Benjamin Peterson
052a02be4a
add tests for mknod() and mkfifo() #9569
2010-08-17 01:27:09 +00:00
Ronald Oussoren
7fb6f5121a
test_getgroups as introduced with issue7900 failed on systems
...
where 'id -G' and posix.getgroups() returned the same information,
but one of the sources contains duplicate information. Rewrite the
check using sets instead of lists.
2010-08-01 19:18:13 +00:00