summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_os.py
Commit message (Collapse)AuthorAgeFilesLines
...
* | Issue #25911: more info on test_os failureVictor Stinner2016-03-261-1/+1
| |
* | Fix test_os.test_symlink(): remove create symlinkVictor Stinner2016-03-251-0/+2
| |
* | changeset: 100749:0b61b2d28a07Victor Stinner2016-03-251-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | tag: tip parent: 100742:ebae81b31cf6 user: Victor Stinner <victor.stinner@gmail.com> date: Fri Mar 25 15:03:34 2016 +0100 files: Lib/test/test_os.py description: test_os: Win32ErrorTests checks if file exists Don't use os.path.exists() since it ignores *any* OSError.
* | test_os: Win32ErrorTests now ensures that TESTFN doesn't existVictor Stinner2016-03-251-6/+8
| | | | | | | | | | Replace also other open(filename, "w") with open(filename, "x") to fail if a previous test forgot to remove filename.
* | test_os: use support.rmtree() to cleanup WalkTestsVictor Stinner2016-03-241-29/+1
| |
* | Enhance and modernize test_osVictor Stinner2016-03-241-77/+76
| | | | | | | | | | | | | | | | | | * add create_file() helper function * create files using "x" mode instead of "w" to detect when a previous test forget to remove a file * open file for writing in unbuferred mode (buffering=0) * replace "try/finally: unlink" with self.addCleanup(support.unlink) * register unlink cleanup function *before* creating new files
* | test_os: use @support.requires_linux_versionVictor Stinner2016-03-241-5/+4
| |
* | Fix DeprecationWarning on WindowsVictor Stinner2016-03-241-49/+67
| | | | | | | | | | Issue #25911: Use support.check_warnings() to expect or ignore DeprecationWarning in test_os.
* | Issue #25911: Tring to silence deprecation warnings in bytes path walk tests.Serhiy Storchaka2016-03-081-0/+11
|\ \ | |/
| * Issue #25911: Tring to silence deprecation warnings in bytes path walk tests.Serhiy Storchaka2016-03-081-0/+11
| |
* | Backed out changeset da020e408c7fSerhiy Storchaka2016-03-081-5/+1
|\ \ | |/
| * Backed out changeset f9e22717722dSerhiy Storchaka2016-03-081-5/+1
| |\
| | * Backed out changeset 19a3e0e664afSerhiy Storchaka2016-03-081-5/+1
| | |
* | | Issues #23808, #25911: Trying to fix walk tests on Windows.Serhiy Storchaka2016-03-081-1/+5
|\ \ \ | |/ / | | | | | | On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
| * | Issues #23808, #25911: Trying to fix walk tests on Windows.Serhiy Storchaka2016-03-081-1/+5
| |\ \ | | |/ | | | | | | On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
| | * Issues #23808, #25911: Trying to fix walk tests on Windows.Serhiy Storchaka2016-03-081-1/+5
| | | | | | | | | | | | On Windows a symlink can has the FILE_ATTRIBUTE_DIRECTORY flag.
* | | Issue #25994: Added the close() method and the support of the context managerSerhiy Storchaka2016-02-111-0/+52
| | | | | | | | | | | | protocol for the os.scandir() iterator.
* | | Issue #25911: Restored support of bytes paths in os.walk() on Windows.Serhiy Storchaka2016-02-081-5/+17
|\ \ \ | |/ /
| * | Issue #25911: Restored support of bytes paths in os.walk() on Windows.Serhiy Storchaka2016-02-081-5/+17
| | |
* | | Issue #25860: Fixed test failure caused by inconsistency of os.walk() andSerhiy Storchaka2015-12-221-0/+2
|\ \ \ | |/ / | | | | | | os.fwalk() parameter names.
| * | Issue #25860: Fixed test failure caused by inconsistency of os.walk() andSerhiy Storchaka2015-12-221-0/+2
| | | | | | | | | | | | os.fwalk() parameter names.
* | | Issue #25860: os.fwalk() no longer skips remaining directories when error ↵Serhiy Storchaka2015-12-221-11/+20
|\ \ \ | |/ / | | | | | | | | | | | | occurs. Original patch by Samson Lee.
| * | Issue #25860: os.fwalk() no longer skips remaining directories when error ↵Serhiy Storchaka2015-12-221-11/+20
| | | | | | | | | | | | | | | | | | occurs. Original patch by Samson Lee.
* | | Issue #25583: Merge makedirs fix from 3.5Martin Panter2015-11-201-0/+3
|\ \ \ | |/ /
| * | Issue #25583: Merge makedirs fix from 3.4 into 3.5Martin Panter2015-11-201-0/+3
| |\ \ | | |/
| | * Issue #25583: Avoid incorrect errors raised by os.makedirs(exist_ok=True)Martin Panter2015-11-191-0/+3
| | |
* | | Issue #25523: Merge a-to-an corrections from 3.5Martin Panter2015-11-021-1/+1
|\ \ \ | |/ /
| * | Issue #25523: Merge "a" to "an" fixes from 3.4 into 3.5Martin Panter2015-11-021-1/+1
| |\ \ | | |/
| | * Issue #25523: Correct "a" article to "an" articleMartin Panter2015-11-021-1/+1
| | | | | | | | | | | | | | | | | | This changes the main documentation, doc strings, source code comments, and a couple error messages in the test suite. In some cases the word was removed or edited some other way to fix the grammar.
| * | Issue #25003: On Solaris 11.3 or newer, os.urandom() now uses the getrandom()Victor Stinner2015-10-011-7/+9
| | | | | | | | | | | | | | | | | | function instead of the getentropy() function. The getentropy() function is blocking to generate very good quality entropy, os.urandom() doesn't need such high-quality entropy.
* | | Issue #25003: Skip test_os.URandomFDTests on Solaris 11.3 and newerVictor Stinner2015-09-181-7/+9
| | | | | | | | | | | | | | | When os.urandom() is implemented with the getrandom() function, it doesn't use a file descriptor.
* | | Merge 3.5 (os.waitpid)Victor Stinner2015-09-151-0/+6
|\ \ \ | |/ /
| * | Issue #25118: Fix a regression of Python 3.5.0 in os.waitpid() on Windows.Victor Stinner2015-09-151-0/+6
| | | | | | | | | | | | Add an unit test on os.waitpid()
* | | Marked keystrokes with the :kbd: role.Serhiy Storchaka2015-09-121-2/+2
|\ \ \ | |/ / | | | | | | Fixed the case of the "Ctrl-" prefixes.
| * | Marked keystrokes with the :kbd: role.Serhiy Storchaka2015-09-121-2/+2
| |\ \ | | |/ | | | | | | Fixed the case of the "Ctrl-" prefixes.
| | * Marked keystrokes with the :kbd: role.Serhiy Storchaka2015-09-121-2/+2
| | | | | | | | | | | | Fixed the case of the "Ctrl-" prefixes.
* | | Merge 3.5 into 3.6Martin Panter2015-09-091-1/+1
|\ \ \ | |/ /
| * | Merge 3.4 into 3.5Martin Panter2015-09-091-1/+1
| |\ \ | | |/
| | * os.sendfile(headers=None, trailers=None) arguments are not actually acceptedMartin Panter2015-09-091-1/+1
| | | | | | | | | | | | Needs to be tested on a BSD.
* | | Issue #23738: Merge 3.5 into 3.6Martin Panter2015-09-091-1/+22
|\ \ \ | |/ /
| * | Issue #23738: Merge 3.4 into 3.5Martin Panter2015-09-091-1/+22
| |\ \ | | |/
| | * Issue #23738: Document and test actual keyword parameter namesMartin Panter2015-09-091-1/+22
| | | | | | | | | | | | Also fix signature because os.utime(..., ns=None) is not allowed.
* | | Use setUpClass and tearDownClass correctly in test_os.Berker Peksag2015-07-211-2/+4
|\ \ \ | |/ / | | | | | | According to the documentation, they must be decorated as classmethods.
| * | Use setUpClass and tearDownClass correctly in test_os.Berker Peksag2015-07-211-2/+4
| | | | | | | | | | | | According to the documentation, they must be decorated as classmethods.
* | | Merge 3.5Victor Stinner2015-07-201-2/+8
|\ \ \ | |/ /
| * | Merge 3.4Victor Stinner2015-07-201-2/+8
| |\ \ | | |/
| | * Issue #24675: Avoid DeprecationWarning in test_osVictor Stinner2015-07-201-2/+8
| | | | | | | | | | | | Patch written by Martin Panter. I replace tearDown() with addCleanup().
| | * Issue #15745: Rewrite os.utime() tests in test_osVictor Stinner2015-06-121-202/+210
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't use the timestamp of an existing file anymore, only use fixed timestamp * Enhance the code checking the resolution of the filesystem timestamps. * Check timestamps with a resolution of 1 microsecond instead of 1 millisecond * When os.utime() uses the current system clock, tolerate a delta of 20 ms. Before some os.utime() tolerated a different of 10 seconds. * Merge duplicated tests and simplify the code
| | * Issue #22585: make URandomFDTests test case actually runNed Deily2015-03-171-0/+1
| | |
| * | (Merge 3.4) Issue #15745: Rewrite os.utime() tests in test_osVictor Stinner2015-06-121-202/+209
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Don't use the timestamp of an existing file anymore, only use fixed timestamp * Enhance the code checking the resolution of the filesystem timestamps. * Check timestamps with a resolution of 1 microsecond instead of 1 millisecond * When os.utime() uses the current system clock, tolerate a delta of 20 ms. Before some os.utime() tolerated a different of 10 seconds. * Merge duplicated tests and simplify the code