summaryrefslogtreecommitdiffstats
path: root/Lib
Commit message (Collapse)AuthorAgeFilesLines
* Import the test properly. This is especially important for py3k.Neal Norwitz2008-03-181-1/+1
|
* Fix test_atexit so that it still passes when -3 is supplied. (It was ↵Steven Bethard2008-03-181-2/+2
| | | | catching the warning messages on stdio from using the reload() function.)
* Fix chown on 64-bit linux. It needed to take a long (64-bit on 64bit linux) asGregory P. Smith2008-03-181-0/+28
| | | | | | | | | uid and gid input to accept values >=2**31 as valid while still accepting negative numbers to pass -1 to chown for "no change". Fixes issue1747858. This should be backported to release25-maint.
* _have_soundcard() is a bad check for winsound.Beep, since you can have a ↵Steven Bethard2008-03-181-17/+19
| | | | soundcard but have the beep driver disabled. This revision basically disables the beep tests by wrapping them in a try/except. The Right Way To Do It is to come up with a _have_enabled_beep_driver() and use that.
* Get regrtest working when re-running testsNeal Norwitz2008-03-181-2/+2
|
* Add py3k warnings for object, type, cell and dict comparisons. This should ↵Steven Bethard2008-03-182-0/+99
| | | | resolve issue2342 and partly resolve issue2373.
* Issue 1577: shutil.move() where destination is a directory was doing aSean Reifscheider2008-03-182-19/+140
| | | | copy, now it is doing a os.rename() if it's on the same file-system.
* Use test_support.unlink instead of os.unlink in tearDown(). (Seems to fix ↵Steven Bethard2008-03-181-1/+1
| | | | an occasional failure in Windows Vista.)
* Fix test_errno to only check for error numbers that are defined by Standard C.Brett Cannon2008-03-181-50/+4
|
* Note that the stderr output of the test is intentional.Martin v. Löwis2008-03-181-0/+2
|
* Add WSA errors.Martin v. Löwis2008-03-181-1/+19
|
* Add more Linux error codes.Martin v. Löwis2008-03-181-5/+5
|
* norwitz-amd64 (gentoo) has EREMOTEIO.Martin v. Löwis2008-03-181-1/+1
|
* The behaviour of winsound.Beep() seems to differ between different versions ↵Trent Nelson2008-03-181-2/+10
| | | | | | | | | of Windows when there's either: a) no sound card entirely b) legacy beep driver has been disabled c) the legacy beep driver has been uninstalled Sometimes RuntimeErrors are raised, sometimes they're not. If _have_soundcard() returns False, don't expect winsound.Beep() to raise a RuntimeError, as this clearly isn't the case, as demonstrated by the various Win32 XP buildbots.
* Add some info to the failure messagesNeal Norwitz2008-03-181-2/+3
|
* Add a -S/--slow flag to regrtest to have it print the 10 slowest tests withJeffrey Yasskin2008-03-181-19/+35
| | | | their times.
* Improve the error message for a test that failed on the S-390 Debian buildbot.Brett Cannon2008-03-181-1/+2
|
* Try increasing the timeout to reduce the flakiness of this test.Neal Norwitz2008-03-181-4/+4
|
* Speed up test_dict by about 10x by only checking selected dict literal sizes,Jeffrey Yasskin2008-03-181-4/+6
| | | | | instead of every integer from 0 to 400. Exhaustive testing wastes time without providing enough more assurance that the code is correct.
* Speed test_thread up from 51.328s to 0.081s by reducing its sleep times. WeJeffrey Yasskin2008-03-181-6/+10
| | | | | still sleep at all to make it likely that all threads are active at the same time.
* Block the "socket.ssl() is deprecated" warning from test_socket_ssl.Jeffrey Yasskin2008-03-181-0/+6
|
* The output directory for tests that compare against stdout is now gone!Brett Cannon2008-03-181-35/+3
|
* test_errno was a no-op test; now it actually tests things and uses unittest.Brett Cannon2008-03-181-15/+32
|
* Move test_extcall to doctest.Brett Cannon2008-03-182-401/+262
|
* Convert test_dummy_threading and test_dbm to unittest.Brett Cannon2008-03-182-114/+85
|
* Convert test_strftime, test_getargs, and test_pep247 to use unittest.Brett Cannon2008-03-183-198/+248
|
* Added PEP 3127 support to tokenize (with tests); added PEP 3127 to NEWS.Eric Smith2008-03-172-4/+13
|
* Force zlib.crc32 and zlib.adler32 to return a signed integer on all platformsGregory P. Smith2008-03-171-0/+9
| | | | | | | | | regardless of the native sizeof(long) used in the integer object. This somewhat odd behavior of returning a signed is maintained in 2.x for compatibility reasons of always returning an integer rather than a long object. Fixes Issue1202 for Python 2.6
* Finished backporting PEP 3127, Integer Literal Support and Syntax.Eric Smith2008-03-174-117/+243
| | | | | | | | Added 0b and 0o literals to tokenizer. Modified PyOS_strtoul to support 0b and 0o inputs. Modified PyLong_FromString to support guessing 0b and 0o inputs. Renamed test_hexoct.py to test_int_literal.py and added binary tests. Added upper and lower case 0b, 0O, and 0X tests to test_int_literal.py
* Make isinstance(OldstyleClass, NewstyleClass) return False instead of raisingJeffrey Yasskin2008-03-172-5/+16
| | | | an exception. Issue reported by Joseph Armbruster.
* Issue 2264: empty float presentation type needs to have at least one digit ↵Eric Smith2008-03-171-0/+9
| | | | | | | | | past the decimal point. Added "Z" format_char to PyOS_ascii_formatd to support empty float presentation type. Renamed buf_size in PyOS_ascii_formatd to more accurately reflect it's meaning. Modified format.__float__ to use the new "Z" format as the default. Added test cases.
* Zap one more use of Exact/Inexact.Raymond Hettinger2008-03-151-1/+1
|
* Removed Exact/Inexact after discussion with Yasskin.Raymond Hettinger2008-03-152-63/+4
| | | | | | | | | | | | | | | Unlike Scheme where exactness is implemented as taints, the Python implementation associated exactness with data types. This created inheritance issues (making an exact subclass of floats would result in the subclass having both an explicit Exact registration and an inherited Inexact registration). This was a problem for the decimal module which was designed to span both exact and inexact arithmetic. There was also a question of use cases and no examples were found where ABCs for exactness could be used to improve code. One other issue was having separate tags for both the affirmative and negative cases. This is at odds with the approach taken elsewhere in the Python (i.e. we don't have an ABC both Hashable and Unhashable).
* add %f format to datetime - issue 1158Skip Montanaro2008-03-153-44/+60
|
* Issue 705836: Fix struct.pack(">f", 1e40) to behave consistentlyMark Dickinson2008-03-141-1/+1
| | | | | | | | | | across platforms: it should now raise OverflowError on all platforms. (Previously it raised OverflowError only on non IEEE 754 platforms.) Also fix the (already existing) test for this behaviour so that it actually raises TestFailed instead of just referencing it.
* Remove a bad test.Brett Cannon2008-03-141-1/+0
|
* Convert test_fcntl to unittest.Brett Cannon2008-03-131-63/+83
| | | | Closes issue #2055. Thanks Giampaolo Rodola.
* Move test_gdbm to use unittest.Brett Cannon2008-03-131-42/+79
| | | | Closes issue #1960. Thanks Giampaolo Rodola.
* Convert test_contains, test_crypt, and test_select to unittest.Brett Cannon2008-03-132-77/+65
| | | | Patch from GHOP 294 by David Marek.
* Move test_tokenize to doctest.Brett Cannon2008-03-132-845/+498
| | | | Done as GHOP 238 by Josip Dzolonga.
* Move test_thread over to unittest. Commits GHOP 237.Brett Cannon2008-03-132-165/+151
| | | | Thanks Benjamin Peterson for the patch.
* Simplify the nlargest() code using heappushpop().Raymond Hettinger2008-03-131-6/+2
|
* Issue 2274: Add heapq.heappushpop().Raymond Hettinger2008-03-132-2/+37
|
* Add recipe to docs.Raymond Hettinger2008-03-111-0/+9
|
* Introduce a lock to fix a race condition which caused an exception in the test.Neal Norwitz2008-03-091-6/+16
| | | | | Some buildbots were consistently failing (e.g., amd64). Also remove a couple of semi-colons.
* Issue 1106316. post_mortem()'s parameter, traceback, is nowFacundo Batista2008-03-081-1/+10
| | | | | optional: it defaults to the traceback of the exception that is currently being handled.
* Add new name for Mandrake: Mandriva.Marc-André Lemburg2008-03-081-3/+4
|
* Speed up with statements by storing the __exit__ method on the stack instead ↵Nick Coghlan2008-03-071-4/+1
| | | | of in a temp variable (bumps the magic number for pyc files)
* Progress on issue #1193577 by adding a polling .shutdown() method toJeffrey Yasskin2008-03-072-74/+95
| | | | | | SocketServers. The core of the patch was written by Pedro Werneck, but any bugs are mine. I've also rearranged the code for timeouts in order to avoid interfering with the shutdown poll.
* Tweak recipes and testsRaymond Hettinger2008-03-071-7/+30
|