summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Exercise .readline() and .readlines(). More data is written to theAndrew M. Kuchling2000-07-291-4/+28
| | | | test file, too, so the methods have more work to do.
* Was quite broken and incomplete. Now passes the test suite, but is still ↵Mark Hammond2000-07-281-5/+14
| | | | incomplete.
* Remove erroneous empty trailing line. (cause test_winreg.py failure)Trent Mick2000-07-271-1/+0
|
* -- changed test to work on platforms which have os.popenFredrik Lundh2000-07-271-2/+8
| | | | but no os.fork
* added test case for fixed duplicate arguments bug in Python/compile.cPeter Schneider-Kamp2000-07-252-0/+17
|
* Made an error message slightly more useful if select() returns something goofyAndrew M. Kuchling2000-07-251-1/+1
|
* -- updated to include known problems in SRE 0.9.6Fredrik Lundh2000-07-241-414/+11
| | | | (cf. test/output/test_sre)
* Restore TestSkipped exception; appears to have disappeared in last checkin.Fred Drake2000-07-241-3/+20
| | | | | Make both TextFailed and TestSkipped subclasses of Error, which derives from Exception. Docstrings have been added for the exceptions and module.
* -- SRE 0.9.6 sync. this includes:Fredrik Lundh2000-07-231-0/+2
| | | | | | | | | | | + added "regs" attribute + fixed "pos" and "endpos" attributes + reset "lastindex" and "lastgroup" in scanner methods + removed (?P#id) syntax; the "lastindex" and "lastgroup" attributes are now always set + removed string module dependencies in sre_parse + better debugging support in sre_parse + various tweaks to build under 1.5.2
* restructured a bit and added some more content...Skip Montanaro2000-07-191-53/+142
|
* make TestFailed a class exceptionSkip Montanaro2000-07-191-1/+2
|
* Enable extra testing now that os.isatty() is in. (Also tests os.isatty ;P)Thomas Wouters2000-07-192-10/+8
|
* Spelling fixes supplied by Rob W. W. Hooft. All these are fixes in eitherThomas Wouters2000-07-164-6/+6
| | | | | | | | | | comments, docstrings or error messages. I fixed two minor things in test_winreg.py ("didn't" -> "Didn't" and "Didnt" -> "Didn't"). There is a minor style issue involved: Guido seems to have preferred English grammar (behaviour, honour) in a couple places. This patch changes that to American, which is the more prominent style in the source. I prefer English myself, so if English is preferred, I'd be happy to supply a patch myself ;)
* Break a cycle created in the saboteur() function.Vladimir Marangozov2000-07-151-2/+5
|
* Break the cycles after testing cmp() on cyclic objects.Vladimir Marangozov2000-07-141-0/+2
|
* new test for posixpath moduleSkip Montanaro2000-07-121-0/+2
|
* new test file for posixpath moduleSkip Montanaro2000-07-121-0/+42
|
* small updates to string_join:Jeremy Hylton2000-07-111-0/+3
| | | | | | | use PyString_AS_STRING macro on local string object when resizing string, make sure resized string will always be big enough split string containing error message across two lines add test to string_tests that causes resizing
* Create two new exceptions: IndentationError and TabError. These areFred Drake2000-07-112-0/+12
| | | | | | | used for indentation related errors. This patch includes Ping's improvements for indentation-related error messages. Closes SourceForge patches #100734 and #100856.
* fix bug #42 reported by Andrew DalkeJeremy Hylton2000-07-115-27/+2
| | | | | | | | | | | | | | The Compare close contains a close method that checks to see if there is any unconsumed data in the Compare instance; i.e. if the canonical output file contains more data than was produced by the current test run. This method was never called, allowing differences to go undetected. Fix is to call close after the test is run (after __import__) output/test_long and output/test_popen2 needed trivial changes output/test_select contained lots of text, but test_select.py produced no output
* fixed inconsistent use of tab and spacesPeter Schneider-Kamp2000-07-111-3/+3
|
* Add test of resize() method of mmap objectsAndrew M. Kuchling2000-07-112-0/+13
|
* add more tests of string.join variants to run_method_testsJeremy Hylton2000-07-111-8/+11
|
* factor out test definitions to string_tests moduleJeremy Hylton2000-07-104-353/+202
| | | | test_string and test_userstring run same tests for string methods
* Added the line 'Testing UTF-16 code point order comparisons... done."Guido van Rossum2000-07-101-0/+1
| | | | to match addition to test_unicode.py.
* expect message "no regression test case for method 'encode'Jeremy Hylton2000-07-101-0/+3
|
* Tests for new surrogate support in the UTF-8 codec. By Bill Tutt.Marc-André Lemburg2000-07-071-0/+72
|
* Tests for new instance support in unicode().Marc-André Lemburg2000-07-071-0/+15
|
* Added tests for the new .isalpha() and .isalnum() methods.Marc-André Lemburg2000-07-052-0/+31
|
* Removed some tabs.Paul Prescod2000-07-041-6/+6
|
* - fixed grouping error bugFredrik Lundh2000-07-031-3/+0
| | | | - changed "group" operator to "groupref"
* - added lookbehind support (?<=pattern), (?<!pattern).Fredrik Lundh2000-07-031-25/+25
| | | | | | | | | | | | | | | | | the pattern must have a fixed width. - got rid of array-module dependencies; the match pro- gram is now stored inside the pattern object, rather than in an extra string buffer. - cleaned up a various of potential leaks, api abuses, and other minors in the engine module. - use mal's new isalnum macro, rather than my own work- around. - untabified test_sre.py. seems like I removed a couple of trailing spaces in the process...
* Compute the name of the test file so that it can be found both when thisFred Drake2000-07-031-2/+12
| | | | | | | test is run as a script and when imported via the regression test framework. Problem reported by Phillip Porch <root@theporch.com>.
* Fixed test outputPaul Prescod2000-07-011-0/+1
|
* Added minidom tests.Paul Prescod2000-07-013-0/+500
|
* output for openpty testGuido van Rossum2000-07-011-0/+2
|
* Thomas Wouters: Test script for openpty()Guido van Rossum2000-07-011-0/+23
|
* Thomas Wouters <thomas@xs4all.net>:Fred Drake2000-06-302-0/+97
| | | | Test case for the pty module.
* Output for test_winreg2.Fred Drake2000-06-301-0/+1
| | | | | Someone who knows what they are doing needs to replace this with something that makes sense -- I'm not running Windows right now.
* Paul Prescod <paul@prescod.net>:Fred Drake2000-06-301-0/+341
| | | | | | Regression test for the new winreg.py module. [Could a Windows person someone please review this?]
* - reverted to "\x is binary byte"Fredrik Lundh2000-06-301-1/+0
| | | | - removed evil tabs from sre_parse and sre_compile
* * added a randomize flag and corresponding -r command line argument thatSkip Montanaro2000-06-301-8/+13
| | | | | | | | | allows the caller to execute the various tests in pseudo-random order - default is still to execute tests in the order returned by findtests(). * moved initialization of the various flag variables to the main() function definition, making it possible to execute regrtest.main() interactively and still override default behavior.
* Switch to sre for regular expression matching (the new mini-re moduleGuido van Rossum2000-06-301-4/+4
| | | | | is actually by Fredrik Lundh). This will break the re tests -- Fredrik will fix this before the final release.
* remove all prints (since the prints where of memory locations)Jeremy Hylton2000-06-302-23/+0
|
* the mad patcher strikes again:Fredrik Lundh2000-06-301-2/+1
| | | | | | | | | | | | | | | -- added pickling support (only works if sre is imported) -- fixed wordsize problems in engine (instead of casting literals down to the character size, cast characters up to the literal size (same as the code word size). this prevents false hits when you're matching a unicode pattern against an 8-bit string. (unfortunately, this broke another test, but I think the test should be changed in this case; more on that on python-dev) -- added sre.purge function (unofficial, clears the cache)
* - fixed lookahead assertions (#10, #11, #12)Fredrik Lundh2000-06-301-3/+0
| | | | - untabified sre_constants.py
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-301-0/+1
| | | | Added test output.
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-301-0/+52
| | | | | | | New test for huge formatting strings (these could cause core dumps in previous versions). By Trent Mick.
* New test for the ucnhash module.Marc-André Lemburg2000-06-301-0/+82
|
* Marc-Andre Lemburg <mal@lemburg.com>:Marc-André Lemburg2000-06-301-3/+0
| | | | Updated test output (the ucn tests are now in test_ucn).