summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Apply SF patch #101135, adding 'import module as m' and 'from module importThomas Wouters2000-08-172-0/+34
| | | | | | | | name as n'. By doing some twists and turns, "as" is not a reserved word. There is a slight change in semantics for 'from module import name' (it will now honour the 'global' keyword) but only in cases that are explicitly undocumented.
* Apply SF patch #101029: call __getitem__ with a proper slice object if thereThomas Wouters2000-08-172-0/+320
| | | | | | | | is no __getslice__ available. Also does the same for C extension types. Includes rudimentary documentation (it could use a cross reference to the section on slice objects, I couldn't figure out how to do that) and a test suite for all Python __hooks__ I could think of, including the new behaviour.
* Chris Herborth <chrish@pobox.com>:Fred Drake2000-08-151-0/+9
| | | | | | | | | Minor updates for BeOS R5. Use of OSError in test.test_fork1 changed to TestSkipped, with corresponding change in BeOS/README (by Fred). This closes SourceForge patch #100978.
* Update test output to reflect change in SyntaxError formatting.Fred Drake2000-08-151-1/+1
| | | | This closes SourceForge bug #110628 (Jitterbug PR#278).
* tests for binascii.b2a_hex() and binascii.a2b_hex().Barry Warsaw2000-08-151-0/+19
|
* Added a test of the md5.hexdigest() method. Funny enough, this testBarry Warsaw2000-08-151-0/+6
| | | | | had yet-another Python implementation of a binary-data-to-hex-digit encoder!
* Remove the test for abspath with an empty path - too hard to do in a ↵Mark Hammond2000-08-141-1/+0
| | | | cross-platform manner.
* Test for fix to bug #110673: os.abspatth() now always returns os.getcwd() on ↵Mark Hammond2000-08-141-0/+5
| | | | Windows, if an empty path is specified. It previously did not if an empty path was delegated to win32api.GetFullPathName())
* Check in the correct output - even though the module itself may not survive!Mark Hammond2000-08-141-0/+76
|
* list comprehensions. seeSkip Montanaro2000-08-122-0/+47
| | | | | | http://sourceforge.net/patch/?func=detailpatch&patch_id=100654&group_id=5470 for details.
* Add largefile support for Linux64 and WIn64. Add test_largefile and some minorTrent Mick2000-08-113-7/+142
| | | | | | | | | | change to regrtest.py to allow optional running of test_largefile ('cause it's slow on Win64). This closes patches: http://sourceforge.net/patch/index.php?func=detailpatch&patch_id=100510&group_id=5470 and http://sourceforge.net/patch/index.php?func=detailpatch&patch_id=100511&group_id=5470
* remove all occurence of math.rint() from the sourcesPeter Schneider-Kamp2000-08-102-13/+0
| | | | (and yes, "Currintly" also counts <0.5 wink>)
* -- changed findall to return empty strings instead of NoneFredrik Lundh2000-08-091-0/+1
| | | | for undefined groups
* -- enabled some temporarily disabled RE testsFredrik Lundh2000-08-083-6/+39
| | | | | -- added basic unicode tests to test_re -- added test case for Sjoerd's xmllib problem to re_tests
* -- whitespace cleanup (real changes coming in next checkin)Fredrik Lundh2000-08-081-20/+20
|
* -- whitespace cleanup (more tests to be added in the next commit)Fredrik Lundh2000-08-081-23/+23
|
* Barry's patch to test the new setdefault() method.Guido van Rossum2000-08-081-0/+12
|
* Removing UTF-16 aware Unicode comparison code. This kind of compareMarc-André Lemburg2000-08-082-51/+53
| | | | | | | function (together with other locale aware ones) should into a new collation support module. See python-dev for a discussion of this removal. Note: This patch should also be applied to the 1.6 branch.
* Neil Schemenauer: GC enable(), disable(), isenabled() interface.Vladimir Marangozov2000-08-061-0/+12
| | | | | | Small stylistic changes by VM: - is_enabled() -> isenabled() - static ... Py_<func> -> static ... gc_<func>
* Oooopsss.....tab and space mismatch corrected.Moshe Zadka2000-08-041-2/+2
|
* Raise 'TestSkipped' (from the test_support) module rather than 'ImportError'Thomas Wouters2000-08-0410-19/+20
| | | | | to signify a test that should be marked as 'skipped' rather than 'failed'. Also 'document' it, in README.
* Raise TestSkipped, not ImportError.Moshe Zadka2000-08-041-2/+2
| | | | Honesty's the best policy.
* Make test_support.TestSkipped errors work the same way as ImportErrors:Thomas Wouters2000-08-041-1/+1
| | | | mark the test as 'skipped', rather than 'failed'.
* In case the user isn't allowed to access /dev/dsp or /dev/dsp isn't thereMoshe Zadka2000-08-041-0/+3
| | | | | | | | | at all (my computer doesn't have a Sound Blaster), this doesn't mean there's a bug in linuxaudiodev. The only error the test suite skips is currently ImportError -- so that's what we raise. If you see a problem with this patch, say so and I'll retract. If you think raising an ImportError sucks, you're right -- but I ain't gonna buy a SB and I sure ain't gonna let the test-suite fail on my machine.
* test the non-multipart sections of the cgi moduleJeremy Hylton2000-08-032-0/+196
|
* Checking in empty tests for urlparse, as future place holdersMoshe Zadka2000-08-032-0/+1
|
* -- added recursion limit (currently ~10,000 levels)Fredrik Lundh2000-08-032-0/+11
| | | | | | | -- improved error messages -- factored out SRE_COUNT; the same code is used by SRE_OP_REPEAT_ONE_TEMPLATE -- minor cleanups
* Added a -l/--leakdebug option which turns on DEBUG_LEAK if the gcBarry Warsaw2000-08-031-12/+23
| | | | module is importable.
* Added output for testsuite for new zip() builtin.Barry Warsaw2000-08-031-0/+1
|
* Added testsuite for new zip() builtin.Barry Warsaw2000-08-031-0/+36
|
* Comment out repeated-group test for the momentAndrew M. Kuchling2000-08-031-1/+1
|
* Add nasty test case that overflows the stack with a repeated groupAndrew M. Kuchling2000-08-031-0/+4
|
* -- SRE 0.9.8: now that the bug is fixed, I might as well enableFredrik Lundh2000-08-011-4/+2
| | | | the test again...
* -- SRE 0.9.8: updated test scriptsFredrik Lundh2000-08-013-21/+6
|
* added count, extend, index, pop and remove to arraymodulePeter Schneider-Kamp2000-07-311-0/+40
|
* Fix inconsistent use of tab/space in indentation.Thomas Wouters2000-07-301-8/+8
|
* Test that after resizing the mmap'd file, we can't seek beyond the new size.Mark Hammond2000-07-301-1/+8
|
* 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 ;)