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
Zachary Ware
101d9e7250
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:44:27 -06:00
Zachary Ware
9fe6d86709
Issue 19572: More silently skipped tests explicitly skipped.
2013-12-08 00:20:35 -06: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
Tim Golden
1cc3540669
Correct whitespace in test_os
2013-10-25 21:26:06 +01:00
Tim Golden
781bbebacb
Issue13234 Allow listdir to handle extended paths on Windows (Patch by Santoso Wijaya)
2013-10-25 20:24:06 +01:00
Victor Stinner
370cb25307
test_os: report tests as skipped when os.statvfs() fails with ENOSYS
2013-10-12 01:33:54 +02:00
Christian Heimes
2582762b1b
Issue #19209 : Remove import of copyreg from the os module to speed up
...
interpreter startup. stat_result and statvfs_result are now hard-coded to
reside in the os module.
The patch is based on Victor Stinner's patch.
2013-10-12 01:27:08 +02:00
Victor Stinner
4f7a36f84f
Issue #18904 : test_os and test_socket use unittest.skipIf() to check if fcntl
...
module is present (to record skipped tests)
2013-09-08 14:14:38 +02:00
Victor Stinner
7ba6b0f943
Issue #18904 : Improve os.get/set_inheritable() tests
2013-09-08 11:47:54 +02:00
Victor Stinner
daf455554b
Issue #18571 : Implementation of the PEP 446: file descriptors and file handles
...
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
2013-08-28 00:53:59 +02:00
Antoine Pitrou
f5e30d8b54
Issue #18756 : make test_urandom_failure more robust by executing its code in a subprocess
2013-08-24 20:52:45 +02:00
Antoine Pitrou
eba25bafc7
Issue #18756 : make test_urandom_failure more robust by executing its code in a subprocess
2013-08-24 20:52:27 +02:00
Victor Stinner
a93c6db68b
(Merge 3.3) Close #17702 : On error, os.environb now removes suppress the except
...
context when raising a new KeyError with the original key.
2013-08-23 19:23:42 +02:00
Victor Stinner
0c2dd0c0a9
Close #17702 : On error, os.environb now removes suppress the except context
...
when raising a new KeyError with the original key.
2013-08-23 19:19:15 +02:00
Antoine Pitrou
95b21460ee
Issue #18756 : Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
2013-08-16 20:49:32 +02:00
Antoine Pitrou
ec34ab5010
Issue #18756 : Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
2013-08-16 20:44:38 +02:00
Victor Stinner
f0e521036c
(Merge 3.3) Issue #18296 : Try to fix TestSendfile.test_trailers() of test_os on FreeBSD
2013-08-15 11:57:19 +02:00
Victor Stinner
5e4d6398a1
Issue #18296 : Try to fix TestSendfile.test_trailers() of test_os on FreeBSD
2013-08-15 11:57:02 +02:00
Terry Jan Reedy
4a0b6f70f6
Issue #15301 : skip new test method so Windows builtbots stop failing.
2013-08-10 20:58:59 -04:00
Larry Hastings
a27b83ad2d
Issue #15301 : Parsing fd, uid, and gid parameters for builtins
...
in Modules/posixmodule.c is now far more robust.
2013-08-08 00:19:50 -07:00
Jason R. Coombs
b501b565c6
Use simple call to os.symlink for broken link (intended for previous commit)
2013-05-27 23:52:43 -04:00
Jason R. Coombs
3a09286790
Issue #13772 : Restored directory detection of targets in `os.symlink` on Windows, which was temporarily removed in Python 3.2.3 due to an incomplete implementation. The implementation now works even if the symlink is created in a location other than the current directory.
2013-05-27 23:21:28 -04:00
Jason R. Coombs
fb1141cd55
Merge with 3.3
2013-05-27 23:53:02 -04:00
Jason R. Coombs
8f1a8e32b1
Merge with 3.3
2013-05-27 23:26:36 -04:00
Charles-Francois Natali
44feda3cd0
Issue #17914 : Add os.cpu_count(). Patch by Yogesh Chaudhari, based on an
...
initial patch by Trent Nelson.
2013-05-20 14:40:46 +02:00
Victor Stinner
672559fc4f
(Merge 3.3) Issue #17702 : use assertRaises() for the unit test
2013-04-14 16:43:38 +02:00
Victor Stinner
839e5eafcb
Issue #17702 : use assertRaises() for the unit test
2013-04-14 16:43:03 +02:00
Victor Stinner
43aa0d07e2
(Merge 3.3) Close #17702 : os.environ now raises KeyError with the original
...
environment variable name (str on UNIX), instead of using the encoded name
(bytes on UNIX).
2013-04-14 16:38:35 +02:00
Victor Stinner
6d10139d70
Close #17702 : os.environ now raises KeyError with the original environment
...
variable name (str on UNIX), instead of using the encoded name (bytes on UNIX).
2013-04-14 16:35:04 +02:00
Stefan Krah
a8e59feeb5
Merge 3.3.
2013-01-17 15:34:50 +01:00
Stefan Krah
ebee49a487
Issue #14110 : Fix test failures on FreeBSD if the user is in the wheel group.
2013-01-17 15:31:00 +01:00
Victor Stinner
67eb8df902
(Merge 3.3) Issue #9644 : Add a test on os.statvfs() for the PEP 383
2013-01-01 23:17:22 +01:00
Victor Stinner
a25be07103
Issue #9644 : Add a test on os.statvfs() for the PEP 383
2013-01-01 23:11:21 +01:00
Victor Stinner
e4110dc11f
Issue #9644 : Fix the encoding used by os.statvfs(): use the filesystem encoding
...
with the surrogateescape error handler, instead of UTF-8 in strict mode.
2013-01-01 23:05:55 +01:00
Andrew Svetlov
914ab8420e
Add test coverage for os.removedirs ( #16775 )
2012-12-25 12:21:49 +02:00
Andrew Svetlov
34dcdee177
Add test coverage for os.removedirs ( #16775 )
2012-12-25 12:20:39 +02:00
Andrew Svetlov
405faed511
Add test coverage for os.removedirs ( #16775 )
2012-12-25 12:18:09 +02:00
Andrew Svetlov
8b33dd8e54
Use OESeeror instead of os.error ( #16720 )
...
Patch by Serhiy Storchaka.
2012-12-24 19:58:48 +02:00
Andrew Svetlov
2606a6f197
Issue #16719 : Get rid of WindowsError. Use OSError instead
...
Patch by Serhiy Storchaka.
2012-12-19 14:33:35 +02:00
Andrew Svetlov
a191959849
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:27:16 +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
Andrew Svetlov
737fb89dd1
Issue #16714 : use 'raise' exceptions, don't 'throw'.
...
Patch by Serhiy Storchaka.
2012-12-18 21:14:22 +02:00
Victor Stinner
ee36c24d15
Issue #15478 : os.lchflags() is not always available when os.chflags() is available
2012-11-13 09:31:51 +01:00
Victor Stinner
e667e98faa
Issue #16218 , #16444 : Backport improvment on tests for non-ASCII characters
2012-11-12 01:23:15 +01:00
Victor Stinner
64e039af02
Issue #16414 : Fix test_os on Windows, don't test os.listdir() with undecodable
...
With the ANSI code page 932, os.listdir(b'\xe7') return an empty list (instead
of failing), whereas os.listdir(b'\xff') raises a FileNotFoundError.
It looks like a Windows bug: b'\xe7' directory does not exist,
FindFirstFileA(b'\xe7') fails with ERROR_FILE_NOT_FOUND (2), instead of
ERROR_PATH_NOT_FOUND (3).
2012-11-07 00:10:14 +01:00
Victor Stinner
8b219b2936
Issue #16414 : Add support.FS_NONASCII and support.TESTFN_NONASCII
...
These constants are used to test functions with non-ASCII data, especially
filenames.
2012-11-06 23:23:43 +01:00
Victor Stinner
afe1706457
Issue #15478 : Use source filename in OSError, not destination filename
...
And other fixes for Windows:
* rename, replace and link require arguments of the same type on Windows
* readlink only supports unicode filenames on Windows
* os.open() specifies the filename on OSError
2012-10-31 22:47:43 +01:00