Jack Jansen
ce92147cc8
Added the Mac to platforms that don't have user/group/other modes.
...
Set the limit for the number of open files to 32 if platform==mac.
2003-01-08 16:30:34 +00:00
Fred Drake
8bec48316b
Two bugs:
...
- assertRaises() wasn't being called correctly
- test_warning() no longer applies
2002-11-22 20:13:43 +00:00
Fred Drake
7633d2393f
Don't call warnings.resetwarnings(); that does bad things that cause
...
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.
2002-10-17 22:09:03 +00:00
Guido van Rossum
8ccd9b63cc
Standardize behavior: no docstrings in test functions. Also get rid
...
of dummy_test_TemporaryFile class; when NamedTemporaryFile and
TemporaryFile are the same, simply don't add a test suite for
TemporaryFile.
2002-08-22 20:02:03 +00:00
Andrew MacIntyre
1d0eeec279
OS/2 EMX behaves like Windows where file permissions are concerned
2002-08-18 06:47:19 +00:00
Guido van Rossum
e888cdc683
Get rid of _once(); inlining it takes less code. :-)
...
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.
2002-08-17 14:50:24 +00:00
Guido van Rossum
787410680b
Patch by Zack W to make test_noinherit() more robust: spawn a Python
...
subprocess that does the right checks. This now works on Windows as
well.
2002-08-17 11:41:01 +00:00
Neal Norwitz
68ee0128a2
Drop the number of test files to 100 for all the tests
2002-08-16 19:28:59 +00:00
Guido van Rossum
20f0b36a04
test_many(): open only 100 temp files, not 1000. Some systems don't
...
allow that many open files per process. I don't see that 1000 makes
any difference for the test.
2002-08-14 14:52:02 +00:00
Tim Peters
ca3ac7f639
There's no distinction among 'user', 'group' and 'world' permissions
...
on Win32, so tests that assume there are such distinctions can't
pass. Fiddled them to work.
2002-08-09 18:13:51 +00:00
Tim Peters
a0d55de877
Whitespace normalization.
2002-08-09 18:01:01 +00:00
Guido van Rossum
0e54871f82
Check-in of the most essential parts of SF 589982 (tempfile.py
...
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.
2002-08-09 16:14:33 +00:00
Tim Peters
c57a285cb4
SF bug #476138 : tempfile behavior across platforms
...
Ensure that a tempfile can be closed any number of times without error.
This wasn't true on Windows.
2001-10-29 21:46:08 +00:00