summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tempfile.py
Commit message (Collapse)AuthorAgeFilesLines
* 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.