xdegaye
92c2ca7633
bpo-28759: Skip some tests on PermissionError raised by Android (GH-4350)
...
Access to mkfifo(), mknod() and hard link creation is controled
by SELinux on Android.
Also remove test.support.android_not_root.
2017-11-12 17:31:07 +01:00
Коренберг Марк
d4b93e21c2
bpo-31106: Fix handling of erros in posix_fallocate() and posix_fadvise() ( #3000 ) ( #3000 )
2017-08-14 06:55:16 -07:00
Victor Stinner
12953ffe12
bpo-31044: Skip test_posix.test_makedev() on FreeBSD ( #2915 )
...
There is a bug in FreeBSD CURRENT with 64-bit dev_t. Skip the test if
dev_t is larger than 32-bit, until the bug is fixed in FreeBSD
CURRENT.
2017-07-27 16:55:54 +02:00
Serhiy Storchaka
1180e5a518
bpo-30879: os.listdir() and os.scandir() now emit bytes names when ( #2634 )
...
called with bytes-like argument.
2017-07-11 06:36:46 +03:00
Serhiy Storchaka
77703942c5
bpo-30746: Prohibited the '=' character in environment variable names ( #2382 )
...
in `os.putenv()` and `os.spawn*()`.
2017-06-25 07:33:01 +03:00
Gregory P. Smith
163468a766
bpo-16500: Don't use string constants for os.register_at_fork() behavior ( #1834 )
...
Instead use keyword only arguments to os.register_at_fork for each of the scenarios.
Updates the documentation for clarity.
2017-05-29 10:03:41 -07:00
Antoine Pitrou
346cbd351e
bpo-16500: Allow registering at-fork handlers ( #1715 )
...
* bpo-16500: Allow registering at-fork handlers
* Address Serhiy's comments
* Add doc for new C API
* Add doc for new Python-facing function
* Add NEWS entry + doc nit
2017-05-27 17:50:54 +02:00
Xavier de Gaye
3a4e989324
Issue #28759 : Fix the tests that fail with PermissionError when run as
...
a non-root user on Android where access rights are controled by SELinux MAC.
2016-12-13 10:00:01 +01:00
Xavier de Gaye
24c3b4928e
Issue #26944 : Fix test_posix for Android where 'id -G' is entirely wrong
...
or missing the effective gid.
2016-10-19 11:00:26 +02:00
Brett Cannon
3f9183b5ac
Issue #26027 , #27524 : Add PEP 519/__fspath__() support to os and
...
os.path.
Thanks to Jelle Zijlstra for the initial patch against posixmodule.c.
2016-08-26 14:44:48 -07:00
Serhiy Storchaka
d73c31899e
Issue #26800 : Undocumented support of general bytes-like objects
...
as paths in os functions is now deprecated.
2016-08-06 23:22:08 +03:00
Serhiy Storchaka
e437a10d15
Issue #23277 : Remove unused imports in tests.
2016-04-24 21:41:02 +03:00
Serhiy Storchaka
7155b881f2
Issue #26671 : Fixed tests for changed error messages.
2016-04-08 08:48:20 +03:00
Martin Panter
0ff89099c7
Issue #23738 : Merge 3.4 into 3.5
2015-09-09 01:56:53 +00:00
Martin Panter
bf19d16950
Issue #23738 : Document and test actual keyword parameter names
...
Also fix signature because os.utime(..., ns=None) is not allowed.
2015-09-09 01:01:13 +00:00
Serhiy Storchaka
7e9d1d1a1b
Issue #23908 : os functions now reject paths with embedded null character
...
on Windows instead of silently truncate them.
Removed no longer used _PyUnicode_HasNULChars().
2015-04-20 10:12:28 +03:00
Serhiy Storchaka
2b0d2007a1
Issue #23908 : os functions now reject paths with embedded null character
...
on Windows instead of silently truncate them.
2015-04-20 09:53:58 +03:00
Serhiy Storchaka
c74bb9d350
Issue #23842 : Added tests for os.major(), os.minor() and os.makedev().
2015-04-20 09:23:21 +03:00
Serhiy Storchaka
16b2e4f548
Issue #23842 : Added tests for os.major(), os.minor() and os.makedev().
2015-04-20 09:22:13 +03:00
Victor Stinner
d577cea8ab
Merge 3.4
2014-10-05 17:38:45 +02:00
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
Victor Stinner
1db9e7bb19
Issue #22054 : Add os.get_blocking() and os.set_blocking() functions to get and
...
set the blocking mode of a file descriptor (False if the O_NONBLOCK flag is
set, True otherwise). These functions are not available on Windows.
2014-07-29 22:32:47 +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