summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tempfile.py
Commit message (Collapse)AuthorAgeFilesLines
* Patch #1026986: Add OpenBSD 3.5 and 3.6 to list of broken systems.Martin v. Löwis2004-09-151-0/+2
|
* When /tmp has certain sticky bits set, newly created subdirectoriesGuido van Rossum2004-03-311-0/+1
| | | | | inherit those bits, causing the test_mkdtemp.test_mode() test to fail. Remove those before comparing the actual mode to the expected mode.
* Patch #813200: Quote executable path on Windows. Fixes #811082.Martin v. Löwis2003-10-231-2/+10
| | | | Backported to 2.3.
* Patch #810914: Return absolute path for mkstemp. Fixes #810408.Martin v. Löwis2003-10-121-1/+7
| | | | | This should not be backported to 2.3, as it might break backwards compatibility.
* Combine the functionality of test_support.run_unittest()Walter Dörwald2003-05-011-4/+1
| | | | | | | | | | and test_support.run_classtests() into run_unittest() and use it wherever possible. Also don't use "from test.test_support import ...", but "from test import test_support" in a few spots. From SF patch #662807.
* Added the Mac to platforms that don't have user/group/other modes.Jack Jansen2003-01-081-3/+6
| | | | Set the limit for the number of open files to 32 if platform==mac.
* Two bugs:Fred Drake2002-11-221-7/+7
| | | | | - assertRaises() wasn't being called correctly - test_warning() no longer applies
* Don't call warnings.resetwarnings(); that does bad things that causeFred Drake2002-10-171-5/+4
| | | | | | other tests to generate warning when they didn't before. In particular, this cancels not only filters set by -W, but also from test.regrtest.
* Standardize behavior: no docstrings in test functions. Also get ridGuido van Rossum2002-08-221-42/+37
| | | | | | of dummy_test_TemporaryFile class; when NamedTemporaryFile and TemporaryFile are the same, simply don't add a test suite for TemporaryFile.
* OS/2 EMX behaves like Windows where file permissions are concernedAndrew MacIntyre2002-08-181-2/+2
|
* Get rid of _once(); inlining it takes less code. :-)Guido van Rossum2002-08-171-61/+0
| | | | | | | Also, don't call gettempdir() in the default expression for the 'dir' argument to various functions; use 'dir=None' for the default and insert 'if dir is None: dir = gettemptir()' in the bodies. That way the work done by gettempdir is postponed until needed.
* Patch by Zack W to make test_noinherit() more robust: spawn a PythonGuido van Rossum2002-08-171-28/+23
| | | | | subprocess that does the right checks. This now works on Windows as well.
* Drop the number of test files to 100 for all the testsNeal Norwitz2002-08-161-4/+8
|
* test_many(): open only 100 temp files, not 1000. Some systems don'tGuido van Rossum2002-08-141-1/+1
| | | | | allow that many open files per process. I don't see that 1000 makes any difference for the test.
* There's no distinction among 'user', 'group' and 'world' permissionsTim Peters2002-08-091-2/+14
| | | | | on Win32, so tests that assume there are such distinctions can't pass. Fiddled them to work.
* Whitespace normalization.Tim Peters2002-08-091-2/+2
|
* Check-in of the most essential parts of SF 589982 (tempfile.pyGuido van Rossum2002-08-091-7/+704
| | | | | | | | rewrite, by Zack Weinberg). This replaces most code in tempfile.py (please review!!!) and adds extensive unit tests for it. This will cause some warnings in the test suite; I'll check those in soon, and also the docs.
* SF bug #476138: tempfile behavior across platformsTim Peters2001-10-291-0/+10
Ensure that a tempfile can be closed any number of times without error. This wasn't true on Windows.