summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Updated output.Lars Gustäbel2000-10-241-1/+6
|
* Added some more tests here and there.Lars Gustäbel2000-10-241-0/+84
|
* Make reindent happy, but not in the way it planned!Fred Drake2000-10-231-3/+3
|
* Make reindent.py happy (convert everything to 4-space indents!).Fred Drake2000-10-2370-1261/+1229
|
* Use 4-space indents.Fred Drake2000-10-231-8/+8
|
* Clean up the temporary file when done with it.Fred Drake2000-10-231-0/+4
|
* Make sure the temporary file is cleaned up even when we raise TestSkipped.Fred Drake2000-10-231-21/+24
|
* Added note saying to use test_support.TESTFN for a temporary filename,Fred Drake2000-10-231-0/+5
| | | | and be clear that you need to clean it up when done.
* Added test for regression on SourceForge bug #117490.Fred Drake2000-10-232-0/+30
|
* Use test_support.TESTFN as the temporary filename.Fred Drake2000-10-181-3/+3
| | | | | | Fix a minor stylistic nit. This closes SourceForge bug #117032.
* Test for math.* exceptional behavior only in verbose mode, so that theTim Peters2000-10-162-31/+40
| | | | | oddball platforms (where, e.g., math.exp(+huge) still fails to raise OverflowError) don't fail the std test suite when run normally.
* Updated test suite to latest pulldom changes.Lars Gustäbel2000-10-132-19/+19
|
* Make the regrtest.py -l (findleaks) option considerably less obnoxious.Neil Schemenauer2000-10-131-4/+10
| | | | | | 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.
* cosmetic changes only:Jeremy Hylton2000-10-121-118/+118
| | | | use standard Python style for whitespace near = and ()
* Added a test for the StringIO write() error I just fixed.Guido van Rossum2000-10-122-0/+9
|
* Anonymous patch to add Darwin 1.2 to the list of BSDs.Guido van Rossum2000-10-121-1/+1
| | | | | | | 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!
* Added some single tuple/list unpacking for JPython regression testing.Barry Warsaw2000-10-121-0/+12
|
* A Mystery: I somehow managed to delete the last two lines of my test_math.pyTim Peters2000-10-121-0/+2
| | | | changes. Here restoring them.
* Stop raising OverflowError on underflows reported by libm (errno==ERANGE andTim Peters2000-10-122-0/+30
| | | | | | | | | 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).
* Added additional test cases for pulldom modifications.Lars Gustäbel2000-10-112-1/+77
|
* Test the exception-raising for error cases in copy_reg.Fred Drake2000-10-112-0/+44
|
* Jack Jansen reported that the regression test failed on the Mac whereGuido van Rossum2000-10-111-3/+1
| | | | | | | string.letters was much more than expected. Solution: explicit is better than implicit; don't rely on string.letters.
* Added test cases for extended printing to an instance. This picked upBarry Warsaw2000-10-111-1/+9
| | | | a bug in JPython where the instance had to have a flush() method.
* wave test outputGuido van Rossum2000-10-091-0/+1
|
* Simple test suite for wave.py by Jean-Claude Rimbault (with someGuido van Rossum2000-10-091-0/+34
| | | | changes to avoid using assert).
* Move the test for confirmation that all nodes have been freed into theFred Drake2000-10-092-33/+72
| | | | | | 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.
* Adapt test output to changed error message.Guido van Rossum2000-10-081-1/+1
|
* Correct output.Guido van Rossum2000-10-081-1/+1
|
* It seems our sound cards can't play mulaw data. Use native-formatGuido van Rossum2000-10-081-1/+12
| | | | 16-bit signed data instead. Hope this works for you; it works for me.
* Fixed too ambitious "nothing to repeat" check. Closes bug #114033.Fredrik Lundh2000-10-071-0/+3
|
* The test is good, but Jim forgot to check in the updated output.Fred Drake2000-10-071-0/+6
|
* SRE didn't handle character category followed by hyphen inside aFredrik Lundh2000-10-071-0/+2
| | | | | character class. Fix provided by Andrew Kuchling. Closes bug #116251.
* Updated test with a case which checks for the bug reported inMarc-André Lemburg2000-10-071-0/+1
|
* Add .toxml test case, as proposed by Alex Martelli in bug report #116244.Martin v. Löwis2000-10-062-1/+7
|
* Add a test case for reporting the file name, and for reporting an errorMartin v. Löwis2000-10-062-3/+36
| | | | for incomplete input.
* test_linuxaudio:Jeremy Hylton2000-10-062-4/+65
| | | | | | | | | | | | | | | | | | | | | | 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
* Uncommented tests that failed for cStringIO,Jim Fulton2000-10-061-17/+11
| | | | Added missing clode to make the clode test test a close. ;)
* Adding Jeremy's new test_import (SF patch 101709).Tim Peters2000-10-062-0/+45
|
* Add SAXReaderNotAvailable, and use it to distinguish between anMartin v. Löwis2000-10-062-2/+19
| | | | ImportError, and a missing driver.
* SF bug 115831 and Ping's SF patch 101751, 0.0**-2.0 returns inf rather thanTim Peters2000-10-061-30/+55
| | | | | | | | | | 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.
* Fix for test_class.py on Win64. id(self), which on Win64 returns aTrent Mick2000-10-041-1/+1
| | | | | PyLong, was used for the return value of a class __hash__ method, which *must* return a PyInt. Solution: hash() the id(self) value.
* Support non-namespace elements in *ElementNS of XMLGenerator.Martin v. Löwis2000-10-031-1/+5
|
* Recompile pattern if (?x) flag was found inside the pattern during theFredrik Lundh2000-10-031-2/+4
| | | | first scan. Closes bug #115040.
* On some systems (like Solaris), the master end of a tty/pty pair isThomas Wouters2000-10-031-2/+0
| | | | | | 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.
* Fixed negative lookahead/lookbehind. Closes bug #115618.Fredrik Lundh2000-10-031-0/+2
|
* Added a zip() test where one of the arguments is an instance whoseBarry Warsaw2000-10-011-0/+12
| | | | class has no __getitem__(). This raises an AttributeError.
* Add mimetools testcase.Martin v. Löwis2000-09-302-0/+23
|
* Added some tests for the truncate() method; one is commented out becauseFred Drake2000-09-282-0/+25
| | | | | | | | 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).
* Remove change that had not been saved when the output was generated;Fred Drake2000-09-281-3/+0
| | | | | not terribly useful. Reported by Mark Favas <Mark.Favas@per.dem.csiro.au>.
* Regression test for ConfigParser module.Fred Drake2000-09-272-0/+195
|