summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Updated hash values to match the new encoding (UTF-8) used in the test.Marc-André Lemburg2000-09-271-1/+1
|
* Fixed encoding to use an endianness independent format.Marc-André Lemburg2000-09-271-1/+3
|
* Fixed misleading qname in test_xmlgen_ns (reported by loewis).Lars Gustäbel2000-09-271-2/+2
|
* Added an "import xml.parsers.expat" to turn errors due to not havingBarry Warsaw2000-09-261-0/+1
| | | | the parser built into ImportErrors.
* Test output data for the Unicode database test suite.Marc-André Lemburg2000-09-261-1/+4
|
* Added test suite for the complete Unicode database. The test previouslyMarc-André Lemburg2000-09-261-7/+79
| | | | only tested a few cases.
* HP-UX is another one of those platforms using an alternative lockGuido van Rossum2000-09-261-1/+1
| | | | structure (same as AIX).
* Add a test for SF bug #110621; stripping square brackets off ofBarry Warsaw2000-09-251-0/+4
| | | | addresses with domain literals.
* Enabled EntityResolver test again now that pyexpat.c has been fixed.Lars Gustäbel2000-09-241-1/+0
|
* Use findfile to locate input and output files.Martin v. Löwis2000-09-241-7/+7
|
* Added EntityResolver and DTDHandler (patch 101631) with test cases.Lars Gustäbel2000-09-242-17/+37
|
* Added necessary test input file for test_sax.pyLars Gustäbel2000-09-241-0/+115
|
* Added test cases for the InputSource class.Lars Gustäbel2000-09-242-2/+55
|
* Added test cases for the Attributes interface.Lars Gustäbel2000-09-242-1/+217
|
* - don't hang if group id is followed by whitespace (closes bug #114660)Fredrik Lundh2000-09-242-1/+3
|
* Added first start on SAX 2.0 tests.Lars Gustäbel2000-09-242-0/+198
|
* Rename the public interface from "pyexpat" to "xml.parsers.expat".Fred Drake2000-09-231-10/+10
|
* - plug a memory leak due to circular listsNeil Schemenauer2000-09-221-0/+3
|
* - Replace debugleak flag with findleaks flag. The new SAVEALL GC option isNeil Schemenauer2000-09-221-6/+14
| | | | used to find cyclic garbage produced by tests.
* - Add test for new SAVEALL debugging flagNeil Schemenauer2000-09-221-31/+92
| | | | | - Use exceptions rather than asserts for failing tests. - Reorganize tests and produce some output if verbose option is set.
* Get rid of the one tab in the file.Guido van Rossum2000-09-221-1/+1
| | | | Closes Bug #115054.
* Revise the test case for pyexpat to avoid using asserts. Conform betterFred Drake2000-09-212-28/+36
| | | | to the Python style guide, and remove unneeded imports.
* The minidom.Node class has a debug attribute which, when its _debugGuido van Rossum2000-09-211-0/+2
| | | | | | | | | | flag is true, is set to a StringIO object that silently collects all debug messages. This is triggered by the Node._debug=1 statement at the top of test_minidom.py. After the tests, we better delete that StringIO object to avoid wasting memory. We also reset the _debug flag. (Note that this is an undetectable memory leak, and the memory doesn't get collected by the cycle-gc either, because it's all reachable -- it's just useless.)
* Derived from Martin's SF patch 110609: support unbounded ints in ↵Tim Peters2000-09-211-23/+136
| | | | | | | | | | | | | | | | %d,i,u,x,X,o formats. Note a curious extension to the std C rules: x, X and o formatting can never produce a sign character in C, so the '+' and ' ' flags are meaningless for them. But unbounded ints *can* produce a sign character under these conversions (no fixed- width bitstring is wide enough to hold all negative values in 2's-comp form). So these flags become meaningful in Python when formatting a Python long which is too big to fit in a C long. This required shuffling around existing code, which hacked x and X conversions to death when both the '#' and '0' flags were specified: the hacks weren't strong enough to deal with the simultaneous possibility of the ' ' or '+' flags too, since signs were always meaningless before for x and X conversions. Isomorphic shuffling was required in unicodeobject.c. Also added dozens of non-trivial new unbounded-int test cases to test_format.py.
* This patch adds a new Python C API called PyString_AsStringAndSize()Marc-André Lemburg2000-09-192-0/+19
| | | | | | | | | | | | | which implements the automatic conversion from Unicode to a string object using the default encoding. The new API is then put to use to have eval() and exec accept Unicode objects as code parameter. This closes bugs #110924 and #113890. As side-effect, the traditional C APIs PyString_Size() and PyString_AsString() will also accept Unicode objects as parameters.
* test_userlist.py:Tim Peters2000-09-191-39/+52
| | | | | Added new test for new __contains__ method. Extensive editing to get rid of asserts.
* Fix test errors.Paul Prescod2000-09-192-2/+1
|
* New test cases for the StringIO moduleMartin v. Löwis2000-09-192-0/+24
|
* Don't print specific Node instances unless running verbosely.Martin v. Löwis2000-09-192-4/+10
| | | | Closes Bug #114775.
* Fixed the error reporting (raise of TestFailed) for the zip() andBarry Warsaw2000-09-191-2/+2
| | | | zip(None) tests. Found by Finn Bock a while ago.
* Test output that goes with updated test_minidom.Paul Prescod2000-09-181-0/+44
|
* Change assertions to confirmations so that optimization doesn't disablePaul Prescod2000-09-181-46/+66
| | | | checks.
* Fix up the cleanup of the temporary DB so it works for BSD DB'sFred Drake2000-09-181-4/+12
| | | | compatibility layer as well as "classic" ndbm.
* arraymodule: Fix SF bug 113960.Tim Peters2000-09-161-2/+12
| | | | | | | | | | | | | | reverse() didn't work at all due to bad arg check. Fixed that. Added Brad Chapman to ACKS file, as the proud new owner of two implicitly copyrighted lines of Python source code <wink>. Repaired buffer_info's total lack of arg-checking. Replaced memmove by memcpy in reverse() guts, as memmove is often slower and the memory areas are guaranteed disjoint. Replaced poke-and-hope unchecked decl of tmp buffer size by assert-checked larger tmp buffer. Got rid of inconsistent spaces before open paren in docstrings. Added reverse() sanity tests to test_array.py.
* - add a new testNeil Schemenauer2000-09-151-0/+22
| | | | - document some of the tricky tests (hopefully correctly :)
* fix bug #110661 (PR#356) -- accept either & or ; as separator for CGIJeremy Hylton2000-09-152-0/+10
| | | | | | query string also some doc string reformatting and use of string methods instead of older string.splitfields
* Fix Bug #114293:Jeremy Hylton2000-09-154-111/+90
| | | | | | | | | | | Strings are unpickled by calling eval on the string's repr. This change makes pickle work like cPickle; it checks if the pickled string is safe to eval and raises ValueError if it is not. test suite modifications: Verify that pickle catches a variety of insecure string pickles Make test_pickle and test_cpickle use exactly the same test suite Add test for pickling recursive object
* For current directory use os.curdir, not ".".Jack Jansen2000-09-151-2/+2
|
* Allow am/pm as well as AM/PM (C9X behaviour).Jack Jansen2000-09-151-2/+2
|
* Remove "," from the list of always_safe characters. It is a reservedJeremy Hylton2000-09-141-0/+18
| | | | | | | | | | character according to RFC 2396. Add some text to quote doc string that explains the quoting rules better. This closes SF Bug #114427. Add _fast_quote operation that uses a dictionary instead of a list when the standard set of safe characters is used.
* Add test cases to make sure we get the right SyntaxError message forFred Drake2000-09-082-0/+59
| | | | various illegal uses of "continue".