summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tempfile.py
Commit message (Collapse)AuthorAgeFilesLines
* Issue 2021: Allow NamedTemporaryFile and SpooledTemporaryFile to be used as ↵Nick Coghlan2008-02-091-3/+65
| | | | context managers. (The NamedTemporaryFile fix should be considered for backporting to 2.5)
* This is probably what was meant here.Armin Rigo2007-12-071-1/+1
|
* Patch #1630118: add a SpooledTemporaryFile class to tempfile.Collin Winter2007-03-191-1/+103
|
* Fix a tab.Georg Brandl2007-03-131-2/+2
|
* Patch #1537850: tempfile.NamedTemporaryFile now has a "delete" parameterGeorg Brandl2007-03-131-2/+19
| | | | | which can be set to False to prevent the default delete-on-close behavior.
* Patch #1540470, for OpenBSD 4.0. Backport candidate for 2.[34].Neal Norwitz2006-09-051-1/+1
|
* Normalized a few cases of whitespace in function declarations.Martin Blais2006-06-061-1/+1
| | | | | | | | | | | | Found them using:: find . -name '*.py' | while read i ; do grep 'def[^(]*( ' $i /dev/null ; done find . -name '*.py' | while read i ; do grep ' ):' $i /dev/null ; done (I was doing this all over my own code anyway, because I'd been using spaces in all defs, so I thought I'd make a run on the Python code as well. If you need to do such fixes in your own code, you can use xx-rename or parenregu.el within emacs.)
* Exceedingly minor tweak.Michael W. Hudson2005-02-151-1/+1
|
* 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.