summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Added a new fileno() method. ZODB's repozo.py wants this so it canTim Peters2004-07-271-1/+9
| | | | apply os.fsync() to the GzipFile backup files it creates.
* Patch #995766: Keyword argument support in cPickle.Martin v. Löwis2004-07-271-0/+10
|
* Patch #995782: Add FreeBSD 5 expectations. Will backport to 2.3.Martin v. Löwis2004-07-261-0/+1
|
* added test for bug #996359.Skip Montanaro2004-07-241-3/+18
|
* Let u'%s' % obj try obj.__unicode__() first and fallback to obj.__str__().Marc-André Lemburg2004-07-231-0/+8
|
* SF patch 995225: tarfile.py fix for bug #990325Tim Peters2004-07-221-0/+0
| | | | | Removes CVS keywords from this binary file, so that test_tarfile passes regardless of whether Python is checked out with -kk.
* SF #857297 and 916874, improve handling of hard links when extractingNeal Norwitz2004-07-201-0/+21
|
* SF #846659, fix bufsize violation and GNU longname/longlink extensionsNeal Norwitz2004-07-201-1/+90
|
* Check the type of values returned by __int__, __float__, __long__,Neil Schemenauer2004-07-191-27/+80
| | | | | | __oct__, and __hex__. Raise TypeError if an invalid type is returned. Note that PyNumber_Int and PyNumber_Long can still return ints or longs. Fixes SF bug #966618.
* Don't return spurious empty fields if 'keep_empty_values' is True.Neil Schemenauer2004-07-192-2/+32
| | | | Fixes SF bug #990307.
* test_codecmaps_hk is also expected to be skipped when a mapping fileHye-Shik Chang2004-07-191-1/+2
| | | | isn't available. (Spotted by Raymond Hettinger)
* Don't try to create the directory if it already exists, otherwise the test failsNeal Norwitz2004-07-191-1/+2
|
* test_sf_950057's gen1() used an assert statement, which caused the testTim Peters2004-07-181-1/+1
| | | | to fail when running with -O. Changed to raise AssertionError instead.
* Whitespace normalization, via reindent.py.Tim Peters2004-07-183-26/+26
|
* Bring CJKCodecs 1.1 into trunk. This completely reorganizes sourceHye-Shik Chang2004-07-1813-51/+79
| | | | | | and installed layouts to make maintenance simple and easy. And it also adds four new codecs; big5hkscs, euc-jis-2004, shift-jis-2004 and iso2022-jp-2004.
* Oops! Restored the pickle test to test_pyclbr, but changed types.py soTim Peters2004-07-181-0/+1
| | | | | that pyclbr doesn't need to special-case modules that do "from types import *".
* The Darwin-specific getproxies_internetconfig() was added to urllib,Tim Peters2004-07-181-2/+2
| | | | | | | | causing test_pyclbr to fail on all other platforms. Added that routine to the urllib "ignore" list. Removed the special case for "g" in the pickle module. types.py deletes "g" from its namespace; maybe it didn't always. Whatever, the special case isn't needed today.
* Upgrade None assignment SyntaxWarning to a SyntaxError.Raymond Hettinger2004-07-171-0/+15
|
* Implemented thread-local data as proposed on python-dev:Jim Fulton2004-07-141-0/+26
| | | | http://mail.python.org/pipermail/python-dev/2004-June/045785.html
* * Hide a loop induction variable that was inadvertantly being picked upRaymond Hettinger2004-07-141-28/+0
| | | | | | | by the locals() call in the context constructor. * Remove unnecessary properties for int, exp, and sign which duplicated information returned by as_tuple().
* * Rename "Signals" to "_signals" making it non-public.Raymond Hettinger2004-07-141-1/+7
| | | | | * Context.create_decimal can take a zero default just like Decimal(). * Fix typo in comment.
* - Bug #981530: Fix UnboundLocalError in shutil.rmtree(). This affectsGuido van Rossum2004-07-141-0/+1
| | | | | | | | the documented behavior: the function passed to the onerror() handler can now also be os.listdir. [I could've sworn I checked this in, but apparently I didn't, or it got lost???]
* It helps when doing checks if something is in a tuple of strings that if youBrett Cannon2004-07-141-1/+1
| | | | put everything in the tuple in caps to use str.upper() instead of str.lower().
* Fixes a bug in testing code handling .pth files that did not restore the ↵Brett Cannon2004-07-131-29/+26
| | | | | | | | | | | | | | | | original module that is removed for testing "import" lines. Originally deleted the entry from sys.modules and then just let other code that needed it to import it again. Problem with this solution is that it lead to code that had already imported the module in question to have their own reference to a new copy of the module in question that new code couldn't reach. This lead to a failure in test_strptime since it monkey-patched the 'time' module it had a reference to while _strptime had its own reference to another copy of 'time' from being imported by test___all__ that it was using for a calculation. Also moved the testing code out of the PthFile class and into the actual test class. This was to stop using 'assert' which is useless with a -O execution.
* Using repr() generates entries that the current stats package can'tNicholas Bastin2004-07-121-3/+3
| | | | collate, so setting it back to the function name
* Fix test case for when time.tzname[0] is either UTC or GMT. Also have testBrett Cannon2004-07-121-2/+7
| | | | output more telling details when there is a failure.
* this is patchMichael W. Hudson2004-07-121-0/+37
| | | | | | | | [ 988698 ] compiler.transformer fix for (a, b) = 1, 2 fixing bug [ 988613 ] compiler.transformer and tuple unpacking
* FreeBSD's services file contains an additional echo service entry, withAndrew MacIntyre2004-07-121-1/+7
| | | | | | | | | | | a non-standard protocol and on a lower port than the tcp/udp entries, which breaks the assumption that there will only be one service by a given name on a given port when no protocol is specified. Previous versions of this code have had other problems as a result of different service definitions amongst common platforms. As this platform has an extra, unexpected, service entry, I've special cased the platform rather than re-order the list of services checked to highlight the pitfall.
* Patch [ 972332 ] urllib2 FTPHandler bugs / John J. LeeKurt B. Kaiser2004-07-111-10/+7
| | | | | Modified Files: urllib2.py test/test_urllib2.py
* SequenceMatcher(None, [], []).get_grouped_opcodes() now returns a generatorBrett Cannon2004-07-101-0/+7
| | | | | | that behaves as if both lists has an empty string in each of them. Closes bug #979794 (and duplicate bug #980117).
* Make ntpath compress multiple slashes between drive letter and the rest of theBrett Cannon2004-07-101-6/+5
| | | | | | path. Also clarifies UNC handling and adds appropriate tests. Applies patch #988607 to fix bug #980327. Thanks Paul Moore.
* [Patch #988602] Move the urllib2 tests into the test frameworkAndrew M. Kuchling2004-07-101-1/+129
|
* Improve Context construction and representation:Raymond Hettinger2004-07-101-16/+12
| | | | | | | | | | | | | * Rename "trap_enablers" to just "traps". * Simplify names of "settraps" and "setflags" to just "traps" and "flags". * Show "capitals" in the context representation * Simplify the Context constructor to match its repr form so that only the set flags and traps need to be listed. * Representation can now be run through eval(). Improve the error message when the Decimal constructor is given a float. The test suite no longer needs a duplicate reset_flags method.
* Add generic codecs.encode() and .decode() APIs that don't imposeMarc-André Lemburg2004-07-101-1/+11
| | | | any restriction on the return type (like unicode.encode() et al. do).
* Restructure testing of .pth files. Move previous functions into a class andBrett Cannon2004-07-101-37/+82
| | | | | create a testing method that can be called to make sure that the handling of the .pth file was correct.
* Add some tests for corner cases.Raymond Hettinger2004-07-091-1/+25
|
* * Update the test suite to reflect that ConversionSyntax was no longerRaymond Hettinger2004-07-091-2/+2
| | | | | | | | public. * Removed the non-signal conditions from __all__. * Removed the XXX comment which was resolved. * Use ^ instead of operator.xor * Remove the threading lock which is no longer necessary.
* Module and tests:Raymond Hettinger2004-07-091-6/+5
| | | | | | | | | | | | * Map conditions to related signals. * Make contexts unhashable. * Eliminate used "default" attribute in exception definitions. * Eliminate the _filterfunc in favor of a straight list. Docs: * Eliminate documented references to conditions that are not signals. * Eliminate parenthetical notes such as "1/0 --> Inf" which are no longer true with the new defaults.
* * fix the print testRaymond Hettinger2004-07-091-0/+14
| | | | * add more __init__ tests
* * balance the left/right search for getitem.Raymond Hettinger2004-07-091-4/+31
| | | | | * use assertions instead of tests after internal calls that can't fail. * expand test coverage
* Add another bunch of test cases for calendars with Sunday as theWalter Dörwald2004-07-081-1/+60
| | | | first day of the week.
* Whitespace normalization.Tim Peters2004-07-0813-33/+26
|
* Exercise xrange a bitNeal Norwitz2004-07-081-0/+59
|
* Exercise some error conditionsNeal Norwitz2004-07-081-0/+10
|
* SF bug #978308, Spurious errors taking bool of dead proNeal Norwitz2004-07-081-0/+1
| | | | | | Need to return -1 on error. Needs backport.
* testGetServBy(): Use services that should be available both on *nix andBarry Warsaw2004-07-061-1/+1
| | | | Windows (XP at least ;). Test in this order: echo, daytime, domain.
* * Fix missing return after error message is set.Raymond Hettinger2004-07-061-0/+1
| | | | * Add a test case that would have caught it.
* * Add __eq__ and __ne__ so that things like list.index() work properlyRaymond Hettinger2004-07-051-11/+16
| | | | | for lists of mixed types. * Test that sort works.
* Test the logic for int(d).Raymond Hettinger2004-07-051-0/+10
|
* * Make the tests independent of the default precision.Raymond Hettinger2004-07-031-0/+7
| | | | * Change the default precision to 28 (to match VB's decimal type).