Commit Graph

182 Commits

Author SHA1 Message Date
Marc-André Lemburg
6c8e4c3ee8 Test output data for the Unicode database test suite. 2000-09-26 16:19:27 +00:00
Lars Gustäbel
e292a24589 Added EntityResolver and DTDHandler (patch 101631) with test cases. 2000-09-24 20:19:45 +00:00
Lars Gustäbel
b7536d5860 Added test cases for the InputSource class. 2000-09-24 18:53:56 +00:00
Lars Gustäbel
ab64787dca Added test cases for the Attributes interface. 2000-09-24 18:40:52 +00:00
Lars Gustäbel
96753b3482 Added first start on SAX 2.0 tests. 2000-09-24 12:24:24 +00:00
Fred Drake
265a804af2 Revise the test case for pyexpat to avoid using asserts. Conform better
to the Python style guide, and remove unneeded imports.
2000-09-21 20:32:13 +00:00
Paul Prescod
4c799191a2 Fix test errors. 2000-09-19 19:33:02 +00:00
Martin v. Löwis
b96e0e5e65 New test cases for the StringIO module 2000-09-19 16:35:39 +00:00
Martin v. Löwis
89c528b02d Don't print specific Node instances unless running verbosely.
Closes Bug #114775.
2000-09-19 16:22:10 +00:00
Paul Prescod
69cc7153c6 Test output that goes with updated test_minidom. 2000-09-18 20:44:15 +00:00
Jeremy Hylton
afde7e24b6 fix bug #110661 (PR#356) -- accept either & or ; as separator for CGI
query string
also some doc string reformatting and use of string methods instead of
    older string.splitfields
2000-09-15 20:06:57 +00:00
Jeremy Hylton
be467e5c69 Fix Bug #114293:
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
2000-09-15 15:14:51 +00:00
Fred Drake
72e48bd05f Add test cases to make sure we get the right SyntaxError message for
various illegal uses of "continue".
2000-09-08 16:32:34 +00:00
Tim Peters
50699215f8 test_mmap wrote null bytes into its expected-output file; this caused me to
waste an hour tracking down an illusion; repaired it; writing/reading non-
printable characters (except \t\r\n) into/outof text-mode files ain't
defined x-platform, and at least some Windows text editors do surprising
things in their presence.
Also added a by-hand "build humber" to the Windows build, in an approximation
of Python's inexplicable BUILD-number Unix scheme.  I'll try to remember to
increment it each time I make a Windows installer available.  It's starting
at 2, cuz I've put 2 installers out so far (both with BUILD #0).
2000-09-04 07:34:06 +00:00
Fredrik Lundh
143328ba63 -- tightened up parsing of octal numbers
-- improved the SRE test harness: don't use asserts, test a few more
   things (including more boundary conditions)
2000-09-02 11:03:34 +00:00
Barry Warsaw
3a9d0611fb Applying patch #100994 to allow JPython to use more of the standard
Python test suite.  Specifically,

- import time instead of strop in test_b1

- test for ClassType of exceptions using isinstance instead of
  equality in test_exceptions

- remove __builtins__ from dir() output in test_pkg

test_pkg output needs to be regenerated.
2000-09-01 06:53:52 +00:00
Fred Drake
762c1cb3e3 Test case to exercise fix for error propogation bug in dictionarys. 2000-08-31 19:48:52 +00:00
Jeremy Hylton
6102e29df2 fixes bug #111951
applies patch #101369 by Moshe Zadke
use explicit list of always safe characters instead of string.letters
add test case
2000-08-31 15:48:10 +00:00
Barry Warsaw
64dab4602e Expand the test suite to test both the GNU gettext and translation
class-based APIs.
2000-08-30 03:32:07 +00:00
Barry Warsaw
9182b45a5a Added tests of "print >> None" 2000-08-29 04:57:10 +00:00
Fred Drake
31f182e830 Added os.popen2() and os.popen3() for non-Windows platforms. 2000-08-28 17:20:05 +00:00
Moshe Zadka
617c43cafe Tim Peters:
Again due to the duplicate copies of test_support, the checked-in
"expected output" file actually contains verbose-mode output.
2000-08-26 09:59:01 +00:00
Fred Drake
28f739aad4 Update the parser module to support augmented assignment.
Add some test cases.
2000-08-25 22:42:40 +00:00
Marc-André Lemburg
4ea8d6e52e Output of the new test 2000-08-25 22:37:51 +00:00
Barry Warsaw
e332c1f415 updated test output 2000-08-25 19:49:28 +00:00
Barry Warsaw
dd46cb38ce output from test_gettext.py test suite 2000-08-25 19:15:00 +00:00
Andrew M. Kuchling
3227cc8c09 Test suite for poll() interface (SF patch #100852) 2000-08-25 01:18:45 +00:00
Thomas Wouters
104a7bcc28 Support for augmented assignment in the UserList, UserDict, UserString and
rfc822 (Addresslist) modules. Also a preliminary testcase for augmented
assignment, which should actually be merged with the test_class testcase I
added last week.
2000-08-24 20:14:10 +00:00
Andrew M. Kuchling
103d5268c2 Updated test suite: test repr() and str() of cookies, and test metadata
fields with quoted values (as in Path="/acme")
2000-08-24 11:56:19 +00:00
Fred Drake
33438d23fa Charles G. Waldman <cgq@fnal.gov>:
Update the test suite for the changes introduced by the EXTENDED_ARG
opcode.

This closes the regression test changes of SourceForge patch #100893.
2000-08-24 00:35:38 +00:00
Skip Montanaro
9dcea3f8a8 test case output for dospath regr test 2000-08-23 20:07:21 +00:00
Skip Montanaro
46dfa5f4ed require list comprehensions to start with a for clause 2000-08-22 02:43:07 +00:00
Guido van Rossum
ff18b800a4 Don't reference a module named test.test_support. Always use plain
test_support.  Also fixed the expected output.
2000-08-21 22:59:29 +00:00
Fred Drake
79ca79d1a9 Add a minimal test suite for the parser module. 2000-08-21 22:30:53 +00:00
Barry Warsaw
efc92eec33 PEP 214, Extended print Statement, has been accepted by the BDFL.
Additional test cases for the extended print form.
2000-08-21 15:46:50 +00:00
Tim Peters
e82e7ccdbd Remove the winreg module from the project. I don't believe any
docs changes are needed (only reference to winreg I could find
was in libwinreg.tex, which is documenting _winreg, and merely
mentions that a higher-level winreg module *may* appear someday;
that's still true).
2000-08-21 02:27:22 +00:00
Tim Peters
571bb8fc72 David Goodger's new getopt test module (thanks, David!).
https://sourceforge.net/patch/?func=detailpatch&patch_id=101110&group_id=5470
Accepted as-is, except for purging an "import *".
2000-08-20 04:18:40 +00:00
Moshe Zadka
514a1028a2 Adding tests of the "attrs" optional argument, and of the js_output
functionality.
2000-08-19 15:57:33 +00:00
Andrew M. Kuchling
cdec8c746b Test case for Cookie.py 2000-08-19 15:21:12 +00:00
Thomas Wouters
5215225ea1 Apply SF patch #101135, adding 'import module as m' and 'from module import
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.
2000-08-17 22:55:00 +00:00
Thomas Wouters
1d75a79c00 Apply SF patch #101029: call __getitem__ with a proper slice object if there
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.
2000-08-17 22:37:32 +00:00
Fred Drake
a64436e853 Update test output to reflect change in SyntaxError formatting.
This closes SourceForge bug #110628 (Jitterbug PR#278).
2000-08-15 15:51:18 +00:00
Mark Hammond
0d0b1e93e1 Check in the correct output - even though the module itself may not survive! 2000-08-14 06:05:40 +00:00
Skip Montanaro
803d6e5451 list comprehensions. see
http://sourceforge.net/patch/?func=detailpatch&patch_id=100654&group_id=5470

for details.
2000-08-12 18:09:51 +00:00
Trent Mick
f29f47b38b Add largefile support for Linux64 and WIn64. Add test_largefile and some minor
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
2000-08-11 19:02:59 +00:00
Peter Schneider-Kamp
10e1bf2f64 remove all occurence of math.rint() from the sources
(and yes, "Currintly" also counts <0.5 wink>)
2000-08-10 04:23:30 +00:00
Fredrik Lundh
8e6d571a7c -- enabled some temporarily disabled RE tests
-- added basic unicode tests to test_re
-- added test case for Sjoerd's xmllib problem to re_tests
2000-08-08 17:06:53 +00:00
Marc-André Lemburg
e5034378cc Removing UTF-16 aware Unicode comparison code. This kind of compare
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.
2000-08-08 08:04:29 +00:00
Jeremy Hylton
d9827c476c test the non-multipart sections of the cgi module 2000-08-03 22:11:43 +00:00
Moshe Zadka
73ed8e566e Checking in empty tests for urlparse, as future place holders 2000-08-03 17:28:50 +00:00