summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
Commit message (Collapse)AuthorAgeFilesLines
* bpo-32143: add f_fsid to os.statvfs() (#4571)Giuseppe Scrivano2017-12-141-0/+5
| | | Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
* Fix hardcoded value in test_os.py (#4744)Pablo Galindo2017-12-071-1/+1
|
* bpo-29180: Skip test_os tests on PermissionError raised by Android (GH-4374)xdegaye2017-11-121-3/+10
|
* Replace KB unit with KiB (#4293)Victor Stinner2017-11-081-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 Stinner2017-11-021-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 Peterson2017-10-261-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 Stinner2017-10-241-17/+0
|
* os.test_utime_current(): tolerate 50 ms delta (#3646)Victor Stinner2017-09-181-5/+4
|
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-79/+75
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* Spelling fixes (#2902)Ville Skyttä2017-08-031-7/+7
|
* bpo-30908: Fix dangling thread in test_os.TestSendfile (#2680)Victor Stinner2017-07-121-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 Storchaka2017-07-111-0/+16
| | | | called with bytes-like argument.
* bpo-30441: Fix bug when modifying os.environ while iterating over it (#2409)Osvaldo Santana Neto2017-07-011-0/+24
|
* bpo-30746: Port more tests for os.spawnvpe() and os.execve() from 2.7. (#2394)Serhiy Storchaka2017-06-251-9/+36
|
* bpo-30746: Prohibited the '=' character in environment variable names (#2382)Serhiy Storchaka2017-06-251-0/+49
| | | | in `os.putenv()` and `os.spawn*()`.
* bpo-30649: Revert utime delta in test_os (#2176)Victor Stinner2017-06-141-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 Stinner2017-06-131-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 Osipov2017-06-071-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 Storchaka2017-03-301-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 Storchaka2017-03-241-0/+12
| | | permission bits of newly-created intermediate-level directories.
* bpo-28682: Added support for bytes paths in os.fwalk(). (#489)Serhiy Storchaka2017-03-071-12/+19
|
* Remove unused imports.Serhiy Storchaka2016-12-161-1/+0
|
* Issue #28732: Raise ValueError when argv[0] is emptySteve Dower2016-11-201-2/+16
|\
* | Issue #28732: Raise ValueError when os.spawn*() is passed an empty tuple of ↵Steve Dower2016-11-201-0/+21
| | | | | | | | arguments
* | Issue #26935: Fix broken Android dup2() in test_osXavier de Gaye2016-11-161-2/+7
| |
* | Closes #27781: Removes special cases for the experimental aspect of PEP 529Steve Dower2016-11-071-7/+2
| |
* | Issue #28353: Make test_os.WalkTests.test_walk_bad_dir stable.Serhiy Storchaka2016-10-281-10/+15
|\ \ | |/
| * Issue #28353: Make test_os.WalkTests.test_walk_bad_dir stable.Serhiy Storchaka2016-10-281-10/+15
| |
| * Issue #28353: Fixed tests of os.fwalk() with broken links.Serhiy Storchaka2016-10-251-3/+18
| |
* | Issue #28353: Try to fix tests.Serhiy Storchaka2016-10-251-2/+13
| |
* | Issue #28353: os.fwalk() no longer fails on broken links.Serhiy Storchaka2016-10-251-2/+18
|\ \ | |/
| * Issue #28353: os.fwalk() no longer fails on broken links.Serhiy Storchaka2016-10-251-5/+21
| |
| * Issue #28075: Fix test_access_denied in Python 3.5Berker Peksag2016-09-181-12/+14
| | | | | | | | I forgot there two variations of os.stat() in Python 3.5.
| * Fix test_access_denied in 3.5Berker Peksag2016-09-171-1/+2
| |
* | Issue #28075: Merge from 3.5Berker Peksag2016-09-171-0/+19
|\ \ | |/
| * Issue #28075: Check for ERROR_ACCESS_DENIED in Windows implementation of ↵Berker Peksag2016-09-171-0/+19
| | | | | | | | | | | | os.stat() Patch by Eryk Sun.
| * Correct spelling in documentation and code commentMartin Panter2016-09-101-1/+1
| |
* | Use requires_os_func() to skip SpawnTestsBerker Peksag2016-09-151-10/+14
| |
* | Make SpawnTest.create_args() keyword-onlyBerker Peksag2016-09-151-5/+5
| |
* | Issue #28114: Fix a crash in parse_envlist() when env contains byte stringsBerker Peksag2016-09-151-2/+15
| | | | | | | | Patch by Eryk Sun.
* | Issue #28114: Add unit tests on os.spawn*()Victor Stinner2016-09-141-0/+86
| |
* | Issue #1602: Windows console doesn't input or print Unicode (PEP 528)Steve Dower2016-08-311-1/+1
| | | | | | | | Closes #17602: Adds a readline implementation for the Windows console
* | #27364: fix "incorrect" uses of escape character in the stdlib.R David Murray2016-09-081-1/+1
| | | | | | | | | | | | | | And most of the tools. Patch by Emanual Barry, reviewed by me, Serhiy Storchaka, and Martin Panter.
* | Issue #27781: Change file system encoding on Windows to UTF-8 (PEP 529)Steve Dower2016-09-081-91/+22
| |
* | Fix test_os.GetRandomTests()Victor Stinner2016-09-071-0/+12
| | | | | | | | Issue #27778: Skip getrandom() tests if getrandom() fails with ENOSYS.
* | Add os.getrandom()Victor Stinner2016-09-061-0/+32
| | | | | | | | | | | | | | Issue #27778: Expose the Linux getrandom() syscall as a new os.getrandom() function. This change is part of the PEP 524.
* | Issue #26027: Support path-like objects in PyUnicode-FSConverter().Brett Cannon2016-09-061-36/+28
| | | | | | | | | | This is to add support for os.exec*() and os.spawn*() functions. Part of PEP 519.
* | os.access does not allow a fdBenjamin Peterson2016-09-051-1/+1
| |
* | Issue #26027: Fix test_path_t_converter on WindowsBerker Peksag2016-08-271-1/+1
| |
* | Don't test for path-like bytes paths on WindowsBrett Cannon2016-08-271-2/+7
| |