Commit Graph

142 Commits

Author SHA1 Message Date
Victor Stinner bed04a77ee cleanup test_posix 2014-10-05 17:37:59 +02:00
Victor Stinner 047b7ae566 Issue #22390: Remove files created by tests 2014-10-05 17:37:41 +02:00
Jesus Cea 61f32cb5b8 Closes #11279: test_posix and lack of "id -G" support - less noise required? (Solaris) 2014-06-28 18:39:35 +02:00
Ned Deily 04cdfa1147 Issue #21811: Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite. 2014-06-25 13:36:14 -07:00
Benjamin Peterson 24a945cc6b merge 3.3 (#20249) 2014-03-01 19:14:48 -05:00
Benjamin Peterson 659a6f562b fix test_posix.test_initgroups to work without supplemental groups (closes #20249) 2014-03-01 19:14:12 -05:00
Larry Hastings b082731fbb Issue #20517: Functions in the os module that accept two filenames
now register both filenames in the exception on failure.
This required adding new C API functions allowing OSError exceptions
to reference two filenames instead of one.
2014-02-09 22:05:19 -08:00
Serhiy Storchaka f28ba369dd Issue #20532: Tests which use _testcapi now are marked as CPython only. 2014-02-07 10:10:55 +02:00
Serhiy Storchaka 5cfc79deae Issue #20532: Tests which use _testcapi now are marked as CPython only. 2014-02-07 10:06:39 +02:00
Victor Stinner 6f17deb9bb (Merge 3.3) Issue #20113: Fix test_posix on OpenIndiana 2014-01-08 16:01:42 +01:00
Victor Stinner cd5ca6a564 Issue #20113: Fix test_posix on OpenIndiana 2014-01-08 16:01:31 +01:00
Victor Stinner 149e540adf (Merge 3.3) Issue #20113: os.readv() and os.writev() now raise an OSError
exception on error instead of returning -1.
2014-01-08 15:26:12 +01:00
Victor Stinner 57ddf78b6b Issue #20113: os.readv() and os.writev() now raise an OSError exception on
error instead of returning -1.
2014-01-08 15:21:28 +01:00
Serhiy Storchaka 43767638a9 Issue #18702: All skipped tests now reported as skipped. 2013-11-03 21:31:38 +02:00
Serhiy Storchaka 7908068627 Issue #18702: All skipped tests now reported as skipped. 2013-11-03 21:31:18 +02:00
Victor Stinner bff989ed20 test_posix.test_pipe2() now checks that the O_NONBLOCK flag is set
Use also os.get_inheritable() instead of fcntl() to check the inheritable flag
(FD_CLOEXEC).
2013-08-28 12:25:40 +02:00
Benjamin Peterson 3a7dffa4ce remove support for compiling on systems without getcwd()
Do we need a fallback implementation of getcwd() from 1991 that claims to
support "really old Unix systems"? I don't think so.
2013-08-23 21:01:48 -05:00
Serhiy Storchaka fc9bf110a2 Issue #17248: Fix os.*chown() testing when user is in root group. 2013-02-21 14:35:51 +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 205e82057d Issue #17248: Fix os.*chown() testing when user has group root. 2013-02-20 19:49:12 +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 07342983ce Issue #15301: Enhance os.*chown() testing. Based on patch by Larry Hastings. 2013-02-20 19:43:05 +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 c2d020090b Issue #4591: Uid and gid values larger than 2**31 are supported now. 2013-02-10 22:03:08 +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 18b30ee88e Issue #16698: merge from 3.3 2013-02-02 15:13:45 -08: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
Serhiy Storchaka 7898043868 Issue #15989: Fix several occurrences of integer overflow
when result of PyLong_AsLong() narrowed to int without checks.
2013-01-15 01:12:17 +02:00
Charles-François Natali b402a5c01b 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:13:25 +01: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 c99b5120a7 Issue #15972: Fix error messages when os functions expecting a file name or
file descriptor receive the incorrect type.
2013-01-07 23:16:49 +02: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 f7a17b48d7 Replace IOError with OSError (#16715) 2012-12-25 16:47:37 +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