summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* fix typos, mostly in commentsFred Drake2005-10-282-2/+2
|
* Patch #1338314, Bug #1336623: fix tarfile so it can extractNeal Norwitz2005-10-281-0/+30
| | | | | | REGTYPE directories from tarfiles written by old programs. Will backport.
* Fix problem handling EXTENDED_ARGs from SF bug # 1333982Neal Norwitz2005-10-241-0/+23
|
* Fix compiler test when run with -u (long mode)Neal Norwitz2005-10-241-1/+1
|
* Fix arigo's funky LOAD_NAME bug: implicit globals inside classes haveNeil Schemenauer2005-10-231-0/+9
| | | | | historically been looked up using LOAD_NAME, not LOAD_GLOBAL. looked up by LOAD_NAME, not
* Revert previous checkin:Neal Norwitz2005-10-221-1/+1
| | | | | | According to Jeremy, the comment only made sense when the yield was disallowed. Now it's testing that the yield is allowed, so it's not bad and the outer finally is irrelevant.
* Revert change, func_name of lambda's is back to <lambda>.Neil Schemenauer2005-10-211-1/+1
|
* Fix bug:Michael W. Hudson2005-10-212-0/+20
| | | | | | | | [ 1327110 ] wrong TypeError traceback in generator expressions by removing the code that can stomp on the users' TypeError raised by the iterable argument to ''.join() -- PySequence_Fast (now?) gives a perfectly reasonable message itself. Also, a couple of tests.
* Fix SF bug #1167751, Argument genexp corner caseNeal Norwitz2005-10-211-2/+14
| | | | | | | | | | | | | Incorrect code was generated for: foo(a = i for i in range(10)) This should have generated a SyntaxError. Fix the Grammar so it raises a SyntaxError and test it. I'm uncertain whether this should be backported. It makes something that was Syntactically valid invalid. However, the code would either be completely broken or do the wrong thing.
* Add comment lost from AST mergeNeal Norwitz2005-10-211-1/+1
|
* Merge ast-branch to headJeremy Hylton2005-10-2012-70/+214
| | | | | | | | | | This change implements a new bytecode compiler, based on a transformation of the parse tree to an abstract syntax defined in Parser/Python.asdl. The compiler implementation is not complete, but it is in stable enough shape to run the entire test suite excepting two disabled tests.