summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* 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".
* test_mmap wrote null bytes into its expected-output file; this caused me toTim Peters2000-09-042-2/+1
| | | | | | | | | | | 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).
* updated SRE test suite (fixes PEP223 problem, shows syntax errors)Fredrik Lundh2000-09-031-76/+78
|
* Repair failing test_sre.py.Tim Peters2000-09-031-3/+3
| | | | | | | | | This was a funny one! The test very subtly relied on 1.5.2's behavior of treating "\x%" as "\x%", i.e. ignoring that was an \x escape that didn't make sense. But /F implemented PEP 223, which causes 2.0 to raise an exception on the bad escape. Fixed by merely making the 3 such strings of this kind into raw strings.
* return -1 for undefined groups (as implemented in 1.5.2) instead ofFredrik Lundh2000-09-021-1/+6
| | | | None (as documented) from start/end/span. closes bug #113254
* -- tightened up parsing of octal numbersFredrik Lundh2000-09-022-190/+150
| | | | | -- improved the SRE test harness: don't use asserts, test a few more things (including more boundary conditions)
* The "more" cmd varies across Windows flavors, sometimes adding strayTim Peters2000-09-011-7/+16
| | | | | | | | newlines at the start or end. Fiddle test_popen2 and popen2._test() to tolerate this. Also change all "assert"s in these tests to raise explicit exceptions, so that python -O doesn't render them useless. Also, in case of error, make the msg display the reprs of what we wrote and what we read, so we can tell exactly why it's failing.
* Applying patch #100994 to allow JPython to use more of the standardBarry Warsaw2000-09-014-12/+19
| | | | | | | | | | | | | 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.
* closes bug #112468 (and all the other bugs that surfaced whenFredrik Lundh2000-08-311-15/+38
| | | | I fixed the a bug in the regression test harness...)
* Test case to exercise fix for error propogation bug in dictionarys.Fred Drake2000-08-312-2/+28
|
* fixes bug #111951Jeremy Hylton2000-08-312-0/+15
| | | | | | applies patch #101369 by Moshe Zadke use explicit list of always safe characters instead of string.letters add test case
* Expand the test suite to test both the GNU gettext and translationBarry Warsaw2000-08-302-257/+154
| | | | class-based APIs.
* Fix for two problems on FreeBSD:Andrew M. Kuchling2000-08-291-3/+6
| | | | | | | In test_poll1(), unregister file descriptors as they're closed, and also close the read end of the pipe In test_poll2(), make the code assume less about the combinations of flag bits that will be returned
* Add support for FreeBSD-[45].Guido van Rossum2000-08-291-1/+1
| | | | -- tg@FreeBSD.org
* Added tests of "print >> None"Barry Warsaw2000-08-292-0/+26
|
* Added os.popen2() and os.popen3() for non-Windows platforms.Fred Drake2000-08-282-1/+39
|
* Open binary files in binary mode. Fixes test failure under Windows.Tim Peters2000-08-261-1/+1
|
* Tim Peters:Moshe Zadka2000-08-261-26/+0
| | | | | Again due to the duplicate copies of test_support, the checked-in "expected output" file actually contains verbose-mode output.
* Another new test using "from test.test_support import ...", causingTim Peters2000-08-261-3/+1
| | | | | | | | | | | | | | | subtle breakage on Windows (the test is skipped here, but the TestSkipped exception wasn't recognized as such, because of duplicate copies of test_support got loaded; so the test looks like a failure under Windows instead of a skip). Repaired the import, but THIS TEST *WILL* FAIL ON OTHER SYSTEMS NOW! Again due to the duplicate copies of test_support, the checked-in "expected output" file actually contains verbose-mode output. I can't generate the *correct* non-verbose output on my system. So, somebody please do that.
* Update the parser module to support augmented assignment.Fred Drake2000-08-252-43/+122
| | | | Add some test cases.
* Output of the new testMarc-André Lemburg2000-08-251-0/+1
|
* New test suite for file objects by Jeremy Hilton. This will needMarc-André Lemburg2000-08-251-0/+45
| | | | | to be extended somewhat -- right now it only tests the .writelines() method.
* Closing patch #101120 -- After everyone agreed.Moshe Zadka2000-08-251-3/+13
|
* Group consensus is that supporting alternative locale categories isBarry Warsaw2000-08-251-6/+0
| | | | useless. So the test of the dcgettext() function is removed.
* Set this test up so that we don't have to create xx/LC_MESSAGES in theBarry Warsaw2000-08-251-66/+320
| | | | | cvs tree. It creates the directory and gettext.mo file on the fly, from the base64 encode binary data.
* updated test outputBarry Warsaw2000-08-251-3/+24
|
* output from test_gettext.py test suiteBarry Warsaw2000-08-251-0/+4
|
* Test suite for new gettext.py module.Barry Warsaw2000-08-251-0/+76
|
* Test suite for poll() interface (SF patch #100852)Andrew M. Kuchling2000-08-252-0/+214
|
* Support for augmented assignment in the UserList, UserDict, UserString andThomas Wouters2000-08-242-0/+280
| | | | | | rfc822 (Addresslist) modules. Also a preliminary testcase for augmented assignment, which should actually be merged with the test_class testcase I added last week.
* Updated test suite: test repr() and str() of cookies, and test metadataAndrew M. Kuchling2000-08-242-1/+15
| | | | fields with quoted values (as in Path="/acme")
* Charles G. Waldman <cgq@fnal.gov>:Fred Drake2000-08-242-18/+4
| | | | | | | Update the test suite for the changes introduced by the EXTENDED_ARG opcode. This closes the regression test changes of SourceForge patch #100893.
* style nitsJeremy Hylton2000-08-231-4/+8
|
* When skipping a test, do not include a spurious space between the exceptionFred Drake2000-08-231-1/+1
| | | | name and the ":" that separates it from the value. (Minor cleanup.)
* test case output for dospath regr testSkip Montanaro2000-08-231-0/+2
|
* new test - like test_ntpath but without splitunc test casesSkip Montanaro2000-08-231-0/+49
|
* added commonprefix test casesSkip Montanaro2000-08-231-0/+6
|
* updated to correct failing test casesSkip Montanaro2000-08-231-2/+2
|
* Rehabilitate autotest.py.Tim Peters2000-08-232-1/+40
| | | | | In README: Write up (Guido's) rules for intra-test imports; warn against asserts; document test_support.use_large_resources.
* require list comprehensions to start with a for clauseSkip Montanaro2000-08-222-0/+7
|