| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
----------------------------
revision 1.3
date: 2001/04/10 15:01:20; author: gvanrossum; state: Exp; lines: +6 -0
Some other tests, when failing, don't always remove their TESTFN file.
Try to do it for them, so our mkdir() operation doesn't fail.
----------------------------
revision 1.2
date: 2001/03/02 05:46:17; author: gvanrossum; state: Exp; lines: +3 -3
When catching errors from os.rmdir(), test for os.error, not IOError!
----------------------------
except I used OSError instead of os.error.
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
was applied to urllib.py, but the corresponding change to
test_urllib.py was not applied. Backport revision 1.6 of this file
into the 2.0 maintenance branch.
----------------------------
revision 1.6
date: 2001/01/19 07:00:08; author: tim_one; state: Exp; lines: +8 -3
urllib.py very recently changed to produce uppercase escapes, but no
corresponding changes were made to its std test.
----------------------------
|
| |
|
|
| |
'release20-maint'.
|
| |
|
|
|
| |
oddball platforms (where, e.g., math.exp(+huge) still fails to raise
OverflowError) don't fail the std test suite when run normally.
|
| | |
|
| |
|
|
|
|
| |
First, only report garbage that the GC cannot free. Second, only report
the number of objects found, not their repr(). People can dig deeper on
their own if they find a leak.
|
| |
|
|
| |
use standard Python style for whitespace near = and ()
|
| | |
|
| |
|
|
|
|
|
| |
Let's hope this is correct (I'm not sure why the sys.platform would be
'Darwin1.2' rather than 'darwin1', which seems to be the convention).
Someone with Darwin please test this!
|
| | |
|
| |
|
|
| |
changes. Here restoring them.
|
| |
|
|
|
|
|
|
|
| |
libm result is 0). Cautiously add a few libm exception test cases:
1. That exp(-huge) returns 0 without exception.
2. That exp(+huge) triggers OverflowError.
3. That sqrt(-1) raises ValueError specifically (apparently under glibc linked
with -lieee, it was raising OverflowError due to an accident of the way
mathmodule.c's CHECK() macro happened to deal with Infs and NaNs under gcc).
|
| | |
|
| | |
|
| |
|
|
|
|
|
| |
string.letters was much more than expected.
Solution: explicit is better than implicit; don't rely on
string.letters.
|
| |
|
|
| |
a bug in JPython where the instance had to have a flush() method.
|
| | |
|
| |
|
|
| |
changes to avoid using assert).
|
| |
|
|
|
|
| |
driver code, so that each test gets this; it had been done inconsistently.
Remove the lines that set the variables holding dom objects to None; not
needed since the interpreter cleans up locals on function return.
|
| | |
|
| | |
|
| |
|
|
| |
16-bit signed data instead. Hope this works for you; it works for me.
|
| | |
|
| | |
|
| |
|
|
|
| |
character class. Fix provided by Andrew Kuchling. Closes bug
#116251.
|
| | |
|
| | |
|
| |
|
|
| |
for incomplete input.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
read the header from the .au file and do a sanity check
pass only the data to the audio device
call flush() so that program does not exit until playback is complete
call all the other methods to verify that they work minimally
call setparameters with a bunch of bugs arguments
linuxaudiodev.c:
use explicit O_WRONLY and O_RDONLY instead of 1 and 0
add a string name to each of the entries in audio_types[]
add AFMT_A_LAW to the list of known formats
add x_mode attribute to lad object, stores imode from open call
test ioctl return value as == -1, not < 0
in read() method, resize string before return
add getptr() method, that calls does ioctl on GETIPTR or GETOPTR
depending on x_mode
in setparameters() method, do better error checking and raise
ValueErrors; also use ioctl calls recommended by Open Sound
System Programmer's Guido (www.opensound.com)
use PyModule_AddXXX to define names in module
|
| |
|
|
| |
Added missing clode to make the clode test test a close. ;)
|
| | |
|
| |
|
|
| |
ImportError, and a missing driver.
|
| |
|
|
|
|
|
|
|
|
| |
raise ValueError. Checked in the patch as far as it went, but also changed
all of ints, longs and floats to raise ZeroDivisionError instead when raising
0 to a negative number. This is what 754-inspired stds require, as the "true
result" is an infinity obtained from finite operands, i.e. it's a singularity.
Also changed float pow to not be so timid about using its square-and-multiply
algorithm. Note that what math.pow does is unrelated to what builtin pow
does, and will still vary by platform.
|
| |
|
|
|
| |
PyLong, was used for the return value of a class __hash__ method, which
*must* return a PyInt. Solution: hash() the id(self) value.
|
| | |
|
| |
|
|
| |
first scan. Closes bug #115040.
|
| |
|
|
|
|
| |
apparently not considered a terminal, and so isatty(3) returns false. So we
skip the test for ttyness of the master side and just check the slave side,
which should really be a terminal.
|
| | |
|
| |
|
|
| |
class has no __getitem__(). This raises an AttributeError.
|
| | |
|
| |
|
|
|
|
|
|
| |
cStringIO does not get it right (reported as SF bug #115531).
Added test for ValueError when write() is called on a closed StringIO
object. Commented out because cStringIO does not get it right
(reported as SF bug #115530).
|
| |
|
|
|
| |
not terribly useful.
Reported by Mark Favas <Mark.Favas@per.dem.csiro.au>.
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
| |
the parser built into ImportErrors.
|
| | |
|
| |
|
|
| |
only tested a few cases.
|
| |
|
|
| |
structure (same as AIX).
|