summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Issue #4751: For hashlib algorithms provided by OpenSSL, the PythonGregory P. Smith2009-05-041-3/+46
| | | | GIL is now released during computation on data lengths >= 2048 bytes.
* (no commit message)Michael Foord2009-05-021-37/+197
|
* Isue #5084: unpickling now interns the attribute names of pickled objects,Antoine Pitrou2009-05-021-0/+14
| | | | | saving memory and avoiding growth in size of subsequent pickles. Proposal and original patch by Jake McGuire.
* Add addCleanup and doCleanups to unittest.TestCase.Michael Foord2009-05-021-2/+106
| | | | | | Closes issue 5679. Michael Foord
* #1607951: Make mailbox.Maildir re-read the directories less frequently.Andrew M. Kuchling2009-05-021-0/+31
| | | | | This is done by recording the current time -1sec, and not re-reading unless the directory mod. times are >= the recorded time.
* Convert test method names to PEP8 style.Gregory P. Smith2009-05-021-46/+47
|
* remove py3k compat codeBenjamin Peterson2009-05-021-35/+7
|
* don't let sys.argv be used in the testsBenjamin Peterson2009-05-021-2/+5
|
* Adds an exit parameter to unittest.main(). If False main no longerMichael Foord2009-05-021-2/+71
| | | | | | | | calls sys.exit. Closes issue 3379. Michael Foord
* Issue #3002: `shutil.copyfile()` and `shutil.copytree()` now raise anAntoine Pitrou2009-05-011-0/+33
| | | | error when a named pipe is encountered, rather than blocking infinitely.
* Adds the ipaddr module to the standard library. Issue #3959.Gregory P. Smith2009-05-011-0/+567
| | | | | | Based off of subversion r69 from http://code.google.com/p/ipaddr-py/ This code is 2to3 safe, I'll merge it into py3k later this afternoon.
* Make test.test_support.EnvironmentVarGuard behave like a dictionary.Walter Dörwald2009-05-0110-65/+64
| | | | | All changes are mirrored to the underlying os.environ dict, but rolled back on exit from the with block.
* Issue #1588: Add complex.__format__.Eric Smith2009-04-301-1/+60
|
* make sure to close fileBenjamin Peterson2009-04-301-1/+1
|
* make sure mode is removable while cleaning up test droppingsBenjamin Peterson2009-04-291-0/+5
|
* fix test_shutil on ZFS #5676Benjamin Peterson2009-04-291-2/+16
|
* Backport some of the float formatting tests from py3k.Mark Dickinson2009-04-292-0/+375
|
* Issue #5864: format(1234.5, '.4') gives misleading resultMark Dickinson2009-04-291-0/+5
| | | | (Backport of r72109 from py3k.)
* More aifc tests.R. David Murray2009-04-291-7/+53
|
* Now that we've got a test_aifc, add a few tests.R. David Murray2009-04-291-0/+30
|
* Fix issue 2245. aifc now skips any chunk type it doesn't actuallyR. David Murray2009-04-293-1/+24
| | | | | | | process instead of throwing errors for anything not in an explicit skip list. This is per this spec: http://www.cnpbagwell.com/aiff-c.txt. Spec reference and test sound file provided by Santiago Peresón, fix based on patch by Hiroaki Kawai.
* Use test.test_support.EnvironmentVarGuard where tests change environment vars.Walter Dörwald2009-04-266-56/+36
|
* Fix typo.Walter Dörwald2009-04-261-1/+1
|
* Issue #4971: Fix titlecase for characters that are their ownMartin v. Löwis2009-04-261-1/+6
| | | | titlecase, but not their own uppercase.
* Issue #5835, deprecate PyOS_ascii_formatd.Eric Smith2009-04-251-0/+62
| | | | | | If anyone wants to clean up the documentation, feel free. It's my first documentation foray, and it's not that great. Will port to py3k with a different strategy.
* Issue #5828 (Invalid behavior of unicode.lower): Fixed bogus logic inWalter Dörwald2009-04-251-1/+14
| | | | | makeunicodedata.py and regenerated the Unicode database (This fixes u'\u1d79'.lower() == '\x00').
* Issue #5837: Certain sequences of calls to set() and unset() forWalter Dörwald2009-04-251-15/+17
| | | | | | | | support.EnvironmentVarGuard objects restored the environment variables incorrectly on __exit__. Fix this by recording the initial value of each environment variable on the first access in set() or unset().
* Fix typo in complex parsing code; expand tests.Mark Dickinson2009-04-251-3/+19
|
* fix a segfault when setting __class__ in __del__ #5283Benjamin Peterson2009-04-251-0/+10
|
* Remove unnecessary double negativeMark Dickinson2009-04-241-1/+1
|
* Issue #5593: Use more robust test for double-rounding in test_fsum.Mark Dickinson2009-04-241-8/+9
| | | | | While we're at it, use new unittest.skipUnless decorator to implement skipping for that test.
* Issue #5812: The two-argument form of the Fraction constructorMark Dickinson2009-04-241-1/+7
| | | | now accepts arbitrary Rational instances.
* Issue #5816:Mark Dickinson2009-04-241-10/+66
| | | | | | | | - simplify parsing and printing of complex numbers - make complex(repr(z)) round-tripping work for complex numbers involving nans, infs, or negative zeros - don't accept some of the stranger complex strings that were previously allowed---e.g., complex('1..1j')
* Issue #5812: make Fraction('1e-6') valid. Backport of r71806.Mark Dickinson2009-04-221-4/+8
|
* Fixed issue 5782: formatting with commas didn't work if no specifier type ↵Eric Smith2009-04-221-0/+6
| | | | code was given.
* Issue 5354: Change API for import_fresh_module() to better support ↵Nick Coghlan2009-04-223-17/+51
| | | | test_warnings use case (also fixes some bugs in the original implementation)
* Backport of some of the work in r71665 to trunk. This reworks much ofEric Smith2009-04-222-2/+56
| | | | | | | | | | | | | | | | | | | | | int, long, and float __format__(), and it keeps their implementation in sync with py3k. Also added PyOS_double_to_string. This is the "fallback" version that's also available in trunk, and should be kept in sync with that code. I'll add an issue to document PyOS_double_to_string in the C API. There are many internal cleanups. Externally visible changes include: - Implement PEP 378, Format Specifier for Thousands Separator, for floats, ints, and longs. - Issue #5515: 'n' formatting for ints, longs, and floats handles leading zero formatting poorly. - Issue #5772: For float.__format__, don't add a trailing ".0" if we're using no type code and we have an exponent.
* Restore skips of posix and pty tests on Windows by calling theR. David Murray2009-04-212-3/+8
| | | | | test_support.import_module on the appropriate modules before any other imports.
* Fix for the Issue918368 - urllib doesn't correct server returned urlsSenthil Kumaran2009-04-211-0/+13
|
* Nit: integer division should use //, not /Mark Dickinson2009-04-201-1/+1
|
* Issue #3166: Make long -> float (and int -> float) conversionsMark Dickinson2009-04-202-0/+93
| | | | | | correctly rounded, using round-half-to-even. This ensures that the value of float(n) doesn't depend on whether we're using 15-bit digits or 30-bit digits for Python longs.
* move test to a more appropiate oneBenjamin Peterson2009-04-181-25/+30
|
* try to initalize all builtin types with PyType_Ready to avoid problems like ↵Benjamin Peterson2009-04-181-0/+12
| | | | #5787
* Issue #1869: Fix a couple of minor round() issues.Mark Dickinson2009-04-181-0/+3
|
* Issue #5768: Change to Unicode output logic and test case for same.Vinay Sajip2009-04-161-0/+1
|
* call __float__ on str subclasses #5759Benjamin Peterson2009-04-151-0/+12
| | | | tests by R. David Murray
* Adjust test_asyncore to account for intentional asyncore behavior changeR. David Murray2009-04-131-4/+1
| | | | introduced by r70934 that was causing a test failure when run under -O.
* remove useless importBenjamin Peterson2009-04-121-1/+0
|
* #5741: dont disallow double percent signs in SafeConfigParser.set() keys.Georg Brandl2009-04-121-0/+4
|
* Make test_asyncore tests match code changes introduced by theR. David Murray2009-04-111-37/+20
| | | | | fix to Issue1161031, refactoring the test to simplify it in the process.