Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | bpo-36234: Add more tests to PosixUidGidTests (GH-12234) | Victor Stinner | 2019-03-11 | 1 | -8/+20 |
| | | | | | | | | | | test_posix.PosixUidGidTests: * Add tests for invalid uid/gid type (str) * Add UID_OVERFLOW and GID_OVERFLOW constants to replace (1 << 32) Initial patch written by David Malcolm. Co-Authored-By: David Malcolm <dmalcolm@redhat.com> | ||||
* | bpo-22831: Use "with" to avoid possible fd leaks in tests (part 2). (GH-10929) | Serhiy Storchaka | 2019-03-05 | 1 | -3/+2 |
| | |||||
* | Clean up code which checked presence of os.{stat,lstat,chmod} (#11643) | Anthony Sottile | 2019-02-25 | 1 | -1/+0 |
| | |||||
* | Fix syntax warnings in tests introduced in bpo-35942. (GH-11934) | Serhiy Storchaka | 2019-02-19 | 1 | -12/+4 |
| | |||||
* | bpo-35942: Improve the error message if __fspath__ returns invalid types in ↵ | Pablo Galindo | 2019-02-18 | 1 | -1/+18 |
| | | | | | path_converter (GH-11831) The error message emitted when returning invalid types from __fspath__ in interfaces that allow passing PathLike objects has been improved and now it does explain the origin of the error. | ||||
* | bpo-35994: add sub dir for sub2_tree in os.walk test if symlink is not ↵ | pxinwr | 2019-02-14 | 1 | -1/+1 |
| | | | | | supported (GH-11853) https://bugs.python.org/issue35994 | ||||
* | bpo-29734: nt._getfinalpathname handle leak (GH-740) | Mark Becwar | 2019-02-02 | 1 | -0/+56 |
| | | | Make sure that failure paths call CloseHandle outside of the function that failed | ||||
* | bpo-35371: Fix possible crash in os.utime() on Windows. (GH-10844) | Serhiy Storchaka | 2018-12-01 | 1 | -0/+23 |
| | |||||
* | bpo-32890, os: Use errno instead of GetLastError() in execve() and ↵ | Alexey Izbyshev | 2018-10-20 | 1 | -0/+10 |
| | | | | | | | | | | truncate() (GH-5784) path_error() uses GetLastError() on Windows, but some os functions are implemented via CRT APIs which report errors via errno. This may result in raising OSError with invalid error code (such as zero). Introduce posix_path_error() function and use it where appropriate. | ||||
* | closes bpo-34664: Only check file permission bits of newly created ↵ | Benjamin Peterson | 2018-09-13 | 1 | -2/+2 |
| | | | | directories. (GH-9273) | ||||
* | bpo-31577: Fix a crash in os.utime() in case of a bad ns argument. (GH-3752) | Oren Milman | 2018-09-12 | 1 | -0/+16 |
| | |||||
* | bpo-34384: Fix os.readlink() on Windows (GH-8740) | Berker Peksag | 2018-08-15 | 1 | -0/+47 |
| | | | | | | | | | os.readlink() now accepts path-like and bytes objects on Windows. Previously, support for path-like and bytes objects was only implemented on Unix. This commit also merges Unix and Windows implementations of os.readlink() in one function and adds basic unit tests to increase test coverage of the function. | ||||
* | bpo-33871: Fix os.sendfile(), os.writev(), os.readv(), etc. (GH-7931) | Serhiy Storchaka | 2018-07-31 | 1 | -15/+35 |
| | | | | | | | | | | | | * Fix integer overflow in os.readv(), os.writev(), os.preadv() and os.pwritev() and in os.sendfile() with headers or trailers arguments (on BSD-based OSes and MacOS). * Fix sending the part of the file in os.sendfile() on MacOS. Using the trailers argument could cause sending more bytes from the input file than was specified. Thanks Ned Deily for testing on 32-bit MacOS. | ||||
* | bpo-33001: Prevent buffer overrun in os.symlink (GH-5989) | Steve Dower | 2018-03-05 | 1 | -0/+34 |
| | |||||
* | bpo-32964: Reuse a testing implementation of the path protocol in tests. (#5930) | Serhiy Storchaka | 2018-03-02 | 1 | -30/+14 |
| | |||||
* | bpo-29248: Fix os.readlink() on Windows (GH-5577) | SSE4 | 2018-02-12 | 1 | -0/+15 |
| | | | | The PrintNameOffset field of the reparse data buffer was treated as a number of characters instead of bytes. | ||||
* | bpo-32593: Drop FreeBSD 9 and older support (#5232) | Victor Stinner | 2018-01-22 | 1 | -3/+1 |
| | | | Drop support of FreeBSD 9 and older. | ||||
* | return the new file descriptor from os.dup2 (closes bpo-32441) (#5041) | Benjamin Peterson | 2017-12-29 | 1 | -10/+6 |
| | |||||
* | bpo-32143: add f_fsid to os.statvfs() (#4571) | Giuseppe Scrivano | 2017-12-14 | 1 | -0/+5 |
| | | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com> | ||||
* | Fix hardcoded value in test_os.py (#4744) | Pablo Galindo | 2017-12-07 | 1 | -1/+1 |
| | |||||
* | bpo-29180: Skip test_os tests on PermissionError raised by Android (GH-4374) | xdegaye | 2017-11-12 | 1 | -3/+10 |
| | |||||
* | Replace KB unit with KiB (#4293) | Victor Stinner | 2017-11-08 | 1 | -2/+2 |
| | | | | | | | | | | | kB (*kilo* byte) unit means 1000 bytes, whereas KiB ("kibibyte") means 1024 bytes. KB was misused: replace kB or KB with KiB when appropriate. Same change for MB and GB which become MiB and GiB. Change the output of Tools/iobench/iobench.py. Round also the size of the documentation from 5.5 MB to 5 MiB. | ||||
* | bpo-31784: Implement PEP 564: add time.time_ns() (#3989) | Victor Stinner | 2017-11-02 | 1 | -0/+17 |
| | | | | | | | | | | | | | | | | | | | | | | | | | Add new time functions: * time.clock_gettime_ns() * time.clock_settime_ns() * time.monotonic_ns() * time.perf_counter_ns() * time.process_time_ns() * time.time_ns() Add new _PyTime functions: * _PyTime_FromTimespec() * _PyTime_FromNanosecondsObject() * _PyTime_FromTimeval() Other changes: * Add also os.times() tests to test_os. * pytime_fromtimeval() and pytime_fromtimeval() now return _PyTime_MAX or _PyTime_MIN on overflow, rather than undefined behaviour * _PyTime_FromNanoseconds() parameter type changes from long long to _PyTime_t | ||||
* | fixes bpo-31866: remove code pertaining to AtheOS support (#4115) | Benjamin Peterson | 2017-10-25 | 1 | -12/+2 |
| | | | | We stop support this OS in 2007 with commit 19fab761b71a1687aee3415db3a937b5ce31975d. Let's finish. | ||||
* | bpo-31827: Remove os.stat_float_times() (GH-4061) | Victor Stinner | 2017-10-24 | 1 | -17/+0 |
| | |||||
* | os.test_utime_current(): tolerate 50 ms delta (#3646) | Victor Stinner | 2017-09-18 | 1 | -5/+4 |
| | |||||
* | bpo-31370: Remove support for threads-less builds (#3385) | Antoine Pitrou | 2017-09-07 | 1 | -79/+75 |
| | | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility. | ||||
* | Spelling fixes (#2902) | Ville Skyttä | 2017-08-03 | 1 | -7/+7 |
| | |||||
* | bpo-30908: Fix dangling thread in test_os.TestSendfile (#2680) | Victor Stinner | 2017-07-12 | 1 | -0/+1 |
| | | | | | | | | | | | | | tearDown() now clears explicitly the self.server variable to make sure that the thread is completely cleared when tearDownClass() checks if all threads have been cleaned up. Fix the following warning: $ ./python -m test --fail-env-changed -m test.test_os.TestSendfile.test_keywords -R 3:1 test_os (...) Warning -- threading_cleanup() failed to cleanup 0 threads after 3 sec (count: 0, dangling: 2) (...) Tests result: ENV CHANGED | ||||
* | bpo-30879: os.listdir() and os.scandir() now emit bytes names when (#2634) | Serhiy Storchaka | 2017-07-11 | 1 | -0/+16 |
| | | | | called with bytes-like argument. | ||||
* | bpo-30441: Fix bug when modifying os.environ while iterating over it (#2409) | Osvaldo Santana Neto | 2017-07-01 | 1 | -0/+24 |
| | |||||
* | bpo-30746: Port more tests for os.spawnvpe() and os.execve() from 2.7. (#2394) | Serhiy Storchaka | 2017-06-25 | 1 | -9/+36 |
| | |||||
* | bpo-30746: Prohibited the '=' character in environment variable names (#2382) | Serhiy Storchaka | 2017-06-25 | 1 | -0/+49 |
| | | | | in `os.putenv()` and `os.spawn*()`. | ||||
* | bpo-30649: Revert utime delta in test_os (#2176) | Victor Stinner | 2017-06-14 | 1 | -1/+3 |
| | | | | | | PPC64 Fedora 3.x buildbot requires at least a delta of 14 ms: revert the utime delta to 20 ms. I tried 10 ms, but test_os failed on the PPC64 Fedora 3.x buildbot. | ||||
* | bpo-30649: test_os tolerates 50 ms delta for utime (#2156) | Victor Stinner | 2017-06-13 | 1 | -2/+5 |
| | | | | | | On Windows, tolerate a delta of 50 ms instead of 20 ms in test_utime_current() and test_utime_current_old() of test_os. On other platforms, reduce the delta from 20 ms to 10 ms. | ||||
* | bpo-30584: Fix test_os fails on non-English Windows (#1980) | Denis Osipov | 2017-06-07 | 1 | -1/+3 |
| | | | | | | | | * Fix bpo-30584 * Adding a comment mentionning the bpo and explaining what is the identifier * Add Denis Osipov to Misc/ACKS | ||||
* | bpo-25996: Added support of file descriptors in os.scandir() on Unix. (#502) | Serhiy Storchaka | 2017-03-30 | 1 | -1/+30 |
| | | | | os.fwalk() is sped up by 2 times by using os.scandir(). | ||||
* | bpo-19930: The mode argument of os.makedirs() no longer affects the file (#799) | Serhiy Storchaka | 2017-03-24 | 1 | -0/+12 |
| | | | permission bits of newly-created intermediate-level directories. | ||||
* | bpo-28682: Added support for bytes paths in os.fwalk(). (#489) | Serhiy Storchaka | 2017-03-07 | 1 | -12/+19 |
| | |||||
* | Remove unused imports. | Serhiy Storchaka | 2016-12-16 | 1 | -1/+0 |
| | |||||
* | Issue #28732: Raise ValueError when argv[0] is empty | Steve Dower | 2016-11-19 | 1 | -2/+16 |
|\ | |||||
* | | Issue #28732: Raise ValueError when os.spawn*() is passed an empty tuple of ↵ | Steve Dower | 2016-11-19 | 1 | -0/+21 |
| | | | | | | | | arguments | ||||
* | | Issue #26935: Fix broken Android dup2() in test_os | Xavier de Gaye | 2016-11-16 | 1 | -2/+7 |
| | | |||||
* | | Closes #27781: Removes special cases for the experimental aspect of PEP 529 | Steve Dower | 2016-11-06 | 1 | -7/+2 |
| | | |||||
* | | Issue #28353: Make test_os.WalkTests.test_walk_bad_dir stable. | Serhiy Storchaka | 2016-10-28 | 1 | -10/+15 |
|\ \ | |/ | |||||
| * | Issue #28353: Make test_os.WalkTests.test_walk_bad_dir stable. | Serhiy Storchaka | 2016-10-28 | 1 | -10/+15 |
| | | |||||
| * | Issue #28353: Fixed tests of os.fwalk() with broken links. | Serhiy Storchaka | 2016-10-25 | 1 | -3/+18 |
| | | |||||
* | | Issue #28353: Try to fix tests. | Serhiy Storchaka | 2016-10-25 | 1 | -2/+13 |
| | | |||||
* | | Issue #28353: os.fwalk() no longer fails on broken links. | Serhiy Storchaka | 2016-10-25 | 1 | -2/+18 |
|\ \ | |/ | |||||
| * | Issue #28353: os.fwalk() no longer fails on broken links. | Serhiy Storchaka | 2016-10-25 | 1 | -5/+21 |
| | |