summaryrefslogtreecommitdiff
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Whitespace normalization.Tim Peters2005-12-258-198/+198
|
* test_bug_1333982(): This one must fail under -O.Tim Peters2005-12-251-1/+4
| | | | All the --all test pass using -O on WinXP now.
* SF patch #1157027, cookielib mis-handles RFC 2109 cookies in Netscape modeNeal Norwitz2005-12-231-0/+33
|
* Fix SF #1117398, cookielib LWPCookieJar and MozillaCookieJar exceptionsNeal Norwitz2005-12-231-0/+25
| | | | | | cookielib.LWPCookieJar and .MozillaCookieJar are documented to raise cookielib.LoadError on attempt to load an invalid cookies file, but raise IOError instead. Compromise by having LoadError subclass IOError.
* Fix Armin's bug 1333982. He found it, he didn't created it :-)Neal Norwitz2005-12-181-0/+40
| | | | | | | | | | This code generated a C assertion: assert 1, ([s for s in x] + [s for s in x]) pass assert was completely broken, it needed to use the proper block. compiler_use_block() is now no longer used, so remove it.
* Fix Bug #1378022, UTF-8 files with a leading BOM crashed the interpreter.Neal Norwitz2005-12-182-0/+9
| | | | Needs backport.
* Get float() to be more portable across platforms. Disable hex strings.Neal Norwitz2005-12-181-2/+4
|
* SF Patch #1365916, mmap fails on AMD64Neal Norwitz2005-12-181-0/+16
| | | | Fix some 64-bit issues due to mismatch format characters w/actual data types
* SF patch #1355913, PEP 341 - Unification of try/except and try/finallyNeal Norwitz2005-12-171-0/+180
| | | | Modified since ast-arenas was implemented.
* Bug #1379994: Fix *unicode_escape codecs to encode r'\' as r'\\'Hye-Shik Chang2005-12-171-10/+14
| | | | just like string codecs.
* added encoding tests to ElementTree/cElementTree testsFredrik Lundh2005-12-162-15/+31
|
* Add two tests for the script interface.Walter Dörwald2005-12-151-5/+19
|
* added cElementTree testsFredrik Lundh2005-12-152-0/+204
|
* Revert r41662 and the part of 41552 that originally caused the problemNeal Norwitz2005-12-151-7/+0
| | | | | (calling ftell(stdin) doesn't seem defined). So we won't test errors from ftell unless we can do it portably.
* If quopri uses the implementations from binascii do the tests a second timeWalter Dörwald2005-12-141-10/+35
| | | | | using the Python implementations of the functions. This imcreases code coverage and makes sure that both implementations do the same thing.
* Subversion settings:Armin Rigo2005-12-141-339/+339
| | | | | | | | | svn:ignore *.pyc *.pyo svn:eol-style native The .py files appear to have been checked in with Windows or inconsistent line endings. The current check-in disrupts the 'svn blame', but hopefully it is irrelevant for freshly imported code.
* move the xml package implementation to xmlcore, and adjust the tests toFred Drake2005-12-143-68/+70
| | | | | test that package, not the xmlcore/PyXML switcheroo fiasco in the xml module/package
* Fix test not to fail on FreeBSD. Directories work also as dataHye-Shik Chang2005-12-131-0/+4
| | | | files on the platform.
* skip NIS entries, empty entries, etcFredrik Lundh2005-12-122-2/+4
|
* skip nis entries, if not filtered out by getpwall itselfFredrik Lundh2005-12-121-0/+2
|
* added xml.etree test (enough of the ElementTree selftest toFredrik Lundh2005-12-121-0/+339
| | | | make sure that all included components work)
* r1068@spiff: Fredrik | 2005-12-12 19:50:30 +0100Fredrik Lundh2005-12-121-0/+1
| | | | assorted xml.etree tweaks
* SF #1377897, Bus error in astNeal Norwitz2005-12-111-0/+4
| | | | | | If a line had multiple semi-colons and ended with a semi-colon, we would loop too many times and access a NULL node. Exit the loop early if there are no more children.
* Patch #1276356: Implement new resource "urlfetch" for regrtest.Hye-Shik Chang2005-12-109-74/+26
| | | | | This enables even impatient people to run tests that require remote files such as test_normalization and test_codecmaps_*.
* mwh spotted a copied error message, make it unique (and correct)Neal Norwitz2005-12-051-1/+1
|
* Fix SF #1373161, r41552 broke test_file on OS XNeal Norwitz2005-12-051-1/+1
| | | | | You apparently can seek(0) on sys.stdin on OS X. But you can't go backwards, so seek(-1).
* [Bug #1164912] Ensure Datetime wrapper class .value attribute is an 8-bit ↵Andrew M. Kuchling2005-12-041-0/+10
| | | | string, not a Unicode string
* Test another error case in PyFloat_FromString().Walter Dörwald2005-11-291-0/+2
|
* Improve test coverage. Hope the test_file changes work the same on windows.Neal Norwitz2005-11-275-0/+75
|
* SF patch #1364545: test_cmd_line.py relied on english error messages whenWalter Dörwald2005-11-251-13/+12
| | | | | invoking the Python interpreter (which didn't work on non-english Windows versions). Check return codes instead.
* Test is still disabled, but access through public moduleNeal Norwitz2005-11-251-2/+2
|
* Cleanup a bit more references so test_urllibnet is stable (test_urllib2 is ↵Neal Norwitz2005-11-251-2/+4
| | | | sometimes stable, at least in isolation)
* Fix typo in comment.Neal Norwitz2005-11-241-1/+2
| | | | | | Delete globals which contain variable information at the end of the test. This makes the test stable (no reported leaks) when running regrtest -R to find reference leaks.
* Move registration of the codec search function to the module scopeNeal Norwitz2005-11-241-17/+18
| | | | | | so it is only executed once. Otherwise the same search function is repeated added to the codec search path when regrtest is run with -R and leaks are reported.
* move test into a unittest.TestCase, no functional changesNeal Norwitz2005-11-241-74/+74
|
* [Patch #1094164] replaceChild(x,x) ends up removing x of the tree. Add fix ↵Andrew M. Kuchling2005-11-221-0/+11
| | | | from Felix Rabe and a test case
* [Patch #1350573] zlib.crc32 doesn't handle 0xffffffff seed. Add tests and ↵Andrew M. Kuchling2005-11-221-0/+2
| | | | bugfix. Bug reported by John Schmidt; bugfix by Danny Yoo.
* improve test coverage in Python/pystrtod.c and Python/mystrtoul.c.Neal Norwitz2005-11-221-0/+29
|
* Add a test for uu.encode() that passed filenames asWalter Dörwald2005-11-211-0/+8
| | | | in_file and out_file.
* Add a rudimentary test for the platform module that at least calls eachWalter Dörwald2005-11-211-0/+74
| | | | documented function once.
* Increase code coverage in Python/structmember.c from 33% to 40%Walter Dörwald2005-11-181-0/+8
| | | | (by forcing a call to the listmember() function).
* Add tests to increase code coverage in Python/codecs.c and Python/exceptions.c.Walter Dörwald2005-11-172-2/+150
|
* Add tests for various error cases and for readbuffer_encode() andWalter Dörwald2005-11-172-2/+72
| | | | | charbuffer_encode(). This increases code coverage in Modules/_codecsmodule.c from 83% to 95%.
* Added proper reflection on instances of <type 'method-wrapper'>, e.g.Armin Rigo2005-11-071-0/+13
| | | | | | | | '[].__add__', to match what the other internal descriptor types provide: '__objclass__' attribute, '__self__' member, and reasonable repr and comparison. Added a test.
* similar to SF bug 847019: a quick check in the time() constructor, whichArmin Rigo2005-11-071-0/+7
| | | | | | accepts strings only for unpickling reasons. This check prevents the honest mistake of passing a string like '2:59.0' to time() and getting an insane object.
* Oops, forgot to add the output file to 41388.Neal Norwitz2005-11-031-0/+2
|
* Bug #1346533, select.poll() doesn't raise an error if timeout > sys.maxintNeal Norwitz2005-11-031-0/+20
| | | | | | Need to check return result of PyInt_AsLong() Will backport.
* Change time.strptime() to raise ValueError whenever there is an error in theBrett Cannon2005-11-021-2/+12
| | | | | | | format string. Before exceptions generated by the internal code propagated up to the user and were not helpful. Closes bug #1340337.
* Fix SF #1345263, colorsys tests, bug in frangeNeal Norwitz2005-11-021-1/+1
| | | | | | Fix a typo that caused step to be ignored. Will backport.
* test_directories(): This test had no chance of passing onTim Peters2005-10-301-2/+14
| | | | | Windows. Hacked it to pass, but not sure it's worth the bother.