summaryrefslogtreecommitdiffstats
path: root/Lib/test
Commit message (Collapse)AuthorAgeFilesLines
* Roll back r60248. It's useful to encourage users not to change RationalJeffrey Yasskin2008-02-011-0/+11
| | | | instances.
* Move __builtins__.trunc() to math.trunc() perJeffrey Yasskin2008-02-015-46/+47
| | | | | http://mail.python.org/pipermail/python-dev/2008-January/076626.html and issue 1965.
* Issue #1678380. Fix a bug that identifies 0j and -0j when they appearMark Dickinson2008-01-311-0/+7
| | | | | in the same code unit. The fix is essentially the same as the fix for a previous bug identifying 0. and -0.
* Remove unused to-be-magic methods from Rational per issue 1968. Do not portJeffrey Yasskin2008-01-311-15/+0
| | | | this patch to py3k.
* Added clear cache methods to clear the internal type lookup cache for ref ↵Christian Heimes2008-01-271-0/+3
| | | | leak test runs.
* Moved Rational._binary_float_to_ratio() to float.as_integer_ratio() becauseJeffrey Yasskin2008-01-271-1/+20
| | | | | | | it's useful outside of rational numbers. This is my first C code that had to do anything significant. Please be more careful when looking over it.
* socket.error doesn't have a headers attribute like ProtocolError.Neal Norwitz2008-01-271-10/+10
| | | | Handle that situation where we catch socket.errors.
* Try to handle socket.errors properly in is_unavailableNeal Norwitz2008-01-271-3/+7
|
* Update the comment and remove the close. If we close we can't flush anymore.Neal Norwitz2008-01-271-2/+1
| | | | | We might still need to close after the for loop if flushing 6! times still doesn't cause the signal/exception.
* Print periodic "still working" messages since this suite is slow.Neal Norwitz2008-01-271-0/+26
|
* Catch socket errors that are often the cause of transient failures.Neal Norwitz2008-01-271-10/+10
| | | | | Many of these exceptions are due to resource unavailable, so the existing code should be able to handle many more spurious errors.
* Retry connection in case it fails to reduce flakinessNeal Norwitz2008-01-271-3/+30
|
* Add a tiny sleep and additional flush to force the file to really be synced.Neal Norwitz2008-01-271-2/+5
|
* Make rational.gcd() public and allow Rational to take decimal strings, perJeffrey Yasskin2008-01-271-6/+40
| | | | Raymond's advice.
* Try to prevent this test from being flaky. We might need a sleep in hereNeal Norwitz2008-01-271-2/+6
| | | | | | | which isn't as bad as it sounds. The close() *should* raise an exception, so if it didn't we should give more time to sync and really raise it. Will backport.
* Eliminate the sleeps that assume the server will start in .5 seconds.Neal Norwitz2008-01-271-20/+26
| | | | | This should make the test less flaky. It also speeds up the test by about 75% on my box (20+ seconds -> ~4 seconds).
* On some systems (e.g., Ubuntu on hppa) the flush()Neal Norwitz2008-01-261-0/+3
| | | | | | doesn't cause the exception, but the close() does. Will backport.
* Reduce the race condition by signalling when the server is readyNeal Norwitz2008-01-261-0/+3
| | | | and not trying to connect before.
* Always try to remove the test file even if close raises an exceptionNeal Norwitz2008-01-261-2/+1
|
* Unit test fix from Giampaolo Rodola, #1938Christian Heimes2008-01-261-0/+1
|
* #1473257: add generator.gi_code attribute that refers toGeorg Brandl2008-01-261-1/+19
| | | | the original code object backing the generator. Patch by Collin Winter.
* The OS X buildbot had errors with the unavailable exceptions disabled. ↵Neal Norwitz2008-01-261-8/+2
| | | | Restore it.
* Use a condition variable (threading.Event) rather than sleeps and checking aNeal Norwitz2008-01-261-14/+19
| | | | | | | | | | | | | global to determine when the server is ready to be used. This slows the test down, but should make it correct. There was a race condition before where the server could have assigned a port, yet it wasn't ready to serve requests. If the client sent a request before the server was completely ready, it would get an exception. There was machinery to try to handle this condition. All of that should be unnecessary and removed if this change works. A NOTE was added as a comment about what needs to be fixed. The buildbots will tell us if there are more errors or if this test is now stable.
* Prevent this test from failing if there are transient network problemsNeal Norwitz2008-01-261-10/+30
| | | | by retrying the host for up to 3 times.
* Changes 54857 and 54840 broke code and were reverted in Py2.5 just beforeRaymond Hettinger2008-01-251-8/+0
| | | | it was released, but that reversion never made it to the Py2.6 head.
* Make the test more robust by trying to reconnect up to 3 timesNeal Norwitz2008-01-251-19/+35
| | | | | | | in case there were transient failures. This will hopefully silence the buildbots for this test. As we find other tests that have a problem, we can fix with a similar strategy assuming it is successful. It worked on my box in a loop for 10+ runs where it would have an exception otherwise.
* Fix-up signature for approximation.Raymond Hettinger2008-01-251-4/+4
|
* Add support for copy, deepcopy, and pickle.Raymond Hettinger2008-01-251-0/+8
|
* #1920: when considering a block starting by "while 0", the compiler ↵Amaury Forgeot d'Arc2008-01-241-0/+9
| | | | | | | | | | | | | | | | | optimized the whole construct away, even when an 'else' clause is present:: while 0: print("no") else: print("yes") did not generate any code at all. Now the compiler emits the 'else' block, like it already does for 'if' statements. Will backport.
* Shorter pprint's for empty sets and frozensets. Fix indentation of ↵Raymond Hettinger2008-01-241-0/+192
| | | | frozensets. Add tests including two complex data structures.
* Expand tests to include nested graph structures.Raymond Hettinger2008-01-241-0/+106
|
* Add support for int(r) just like the other numeric classes.Raymond Hettinger2008-01-241-0/+1
|
* Add support for trunc().Raymond Hettinger2008-01-241-0/+11
|
* Fix test67.py from issue #1303614.Guido van Rossum2008-01-242-21/+24
|
* Fi debug turd -- a call accidentally left out.Guido van Rossum2008-01-241-1/+1
|
* Fix issue1789: The tutorial contained a misuse of the struct module.Gregory P. Smith2008-01-241-1/+1
| | | | (also remove an unneeded import struct from test_largefile)
* Fix the tests by restoring __import__. I think the test is still valid.Neal Norwitz2008-01-241-4/+6
|
* Minor clean-up and more tests.Raymond Hettinger2008-01-241-0/+11
|
* Add first-cut at an approximation function (still needs rounding tweaks). ↵Raymond Hettinger2008-01-241-0/+12
| | | | Add continued fraction conversions.
* Turn three recently fixed crashers into regular tests.Guido van Rossum2008-01-231-1/+70
|
* Fix two crashers.Guido van Rossum2008-01-232-42/+0
|
* I'm tired of these tests breaking at Google due to our large number ofGuido van Rossum2008-01-232-0/+6
| | | | | users and groups in LDAP/NIS. So I'm limiting the extra-heavy part of the tests to passwd/group files with at most 1000 entries.
* Fix for #1087741 patch.Georg Brandl2008-01-221-0/+7
|
* - Fix Issue #1703448: A joined thread could show up in theGregory P. Smith2008-01-221-0/+18
| | | | | threading.enumerate() list after the join() for a brief period until it actually exited.
* Reformat some ugly code.Georg Brandl2008-01-211-26/+27
|
* Patch #1720595: add T_BOOL to the range of structmember types.Georg Brandl2008-01-211-1/+7
| | | | Patch by Angelo Mottola, reviewed by MvL, tests by me.
* #1715: include sub-extension modules in pydoc text output.Georg Brandl2008-01-211-0/+6
|
* Issue #1882: when compiling code from a string, encoding cookies in theGeorg Brandl2008-01-211-1/+9
| | | | second line of code were not always recognized correctly.
* #1269: fix a bug in pstats.add_callers() and add a unit test file for pstats.Georg Brandl2008-01-211-0/+26
|
* #1876: fix typos in test_operator.Georg Brandl2008-01-201-4/+4
|