Neal Norwitz
41ada16cb7
Print periodic "still working" messages since this suite is slow.
2008-01-27 17:13:07 +00:00
Neal Norwitz
8250fbeac6
Reduce buffer size since we do not need 1k
2008-01-27 17:12:15 +00:00
Neal Norwitz
183c5346fe
Catch socket errors that are often the cause of transient failures.
...
Many of these exceptions are due to resource unavailable, so the
existing code should be able to handle many more spurious errors.
2008-01-27 17:11:11 +00:00
Neal Norwitz
9846de1dfb
Retry connection in case it fails to reduce flakiness
2008-01-27 17:10:58 +00:00
Neal Norwitz
041ee5d373
Add a tiny sleep and additional flush to force the file to really be synced.
2008-01-27 17:10:50 +00:00
Neal Norwitz
b3c8243c47
Update to newer version of ffi. Fixes crashes and test failures of longdouble
2008-01-27 17:10:43 +00:00
Neal Norwitz
e9057ff1a9
Initialize variable to prevent warning on some platform/config.
2008-01-27 17:10:35 +00:00
Neal Norwitz
c44af337ce
Add assertion that we do not blow out newl
2008-01-27 17:10:29 +00:00
Neal Norwitz
e7bb9188f4
Whitespace cleanup
2008-01-27 17:10:14 +00:00
Raymond Hettinger
9bba7b7085
Removed an unnecessary and confusing paragraph from the namedtuple docs.
2008-01-27 10:47:55 +00:00
Raymond Hettinger
63c77b6175
Docstring nit
2008-01-27 10:13:57 +00:00
Neal Norwitz
cfb41c4985
Add stdarg include for va_list to get this to compile on cygwin
2008-01-27 07:41:33 +00:00
Neal Norwitz
e1027f9034
Use int for the sign rather than a char. char can be signed or unsigned.
...
It's system dependent. This might fix the problem with test_rfind failing.
2008-01-27 07:37:38 +00:00
Neal Norwitz
448654f1f8
Mostly reformat. Also set an error and return NULL if neither MS_WINDOWS
...
nor UNIX is defined. This may have caused problems on cygwin.
2008-01-27 07:36:03 +00:00
Jeffrey Yasskin
3e1a373616
Make rational.gcd() public and allow Rational to take decimal strings, per
...
Raymond's advice.
2008-01-27 05:40:35 +00:00
Neal Norwitz
46c61b2c1d
Try to prevent this test from being flaky. We might need a sleep in here
...
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.
2008-01-27 05:02:34 +00:00
Neal Norwitz
6e070814b2
Eliminate the sleeps that assume the server will start in .5 seconds.
...
This should make the test less flaky. It also speeds up the test
by about 75% on my box (20+ seconds -> ~4 seconds).
2008-01-27 01:44:05 +00:00
Neal Norwitz
3d785e2c6a
Consistently use tempfile.tempdir for the db_home directory.
2008-01-26 23:14:17 +00:00
Neal Norwitz
7f47d93f52
On some systems (e.g., Ubuntu on hppa) the flush()
...
doesn't cause the exception, but the close() does.
Will backport.
2008-01-26 23:13:46 +00:00
Neal Norwitz
37184295dc
Reduce the race condition by signalling when the server is ready
...
and not trying to connect before.
2008-01-26 21:21:59 +00:00
Neal Norwitz
a121508fac
Always try to remove the test file even if close raises an exception
2008-01-26 21:02:45 +00:00
Neal Norwitz
739a3c40e6
Cleanup the code a bit. test_rfind is failing on PPC and PPC64 buildbots,
...
this might fix the problem.
2008-01-26 20:24:36 +00:00
Gregory P. Smith
d006380fe1
Update docs for new callpack params added in r60188
2008-01-26 18:51:05 +00:00
Christian Heimes
a2af21262a
Unit test fix from Giampaolo Rodola, #1938
2008-01-26 16:43:35 +00:00
Georg Brandl
6caad7d2cb
Move C API entries to the corresponding section.
2008-01-26 14:19:22 +00:00
Georg Brandl
0cdf9a36ec
#1473257 : add generator.gi_code attribute that refers to
...
the original code object backing the generator. Patch by Collin Winter.
2008-01-26 14:14:20 +00:00
Georg Brandl
29604a1b4c
#1940 : make it possible to use curses.filter() before curses.initscr()
...
as the documentation says.
2008-01-26 14:03:47 +00:00
Georg Brandl
2a7d991c6c
Clarify "b" mode under Unix.
2008-01-26 14:02:38 +00:00
Andrew M. Kuchling
0c3f1680b3
Add some items
2008-01-26 13:50:51 +00:00
Georg Brandl
a7364408cd
Fix markup again.
2008-01-26 13:41:21 +00:00
Georg Brandl
0522548d61
Slashes allowed on Windows.
2008-01-26 11:02:22 +00:00
Georg Brandl
422319937e
Add missing things in re docstring.
2008-01-26 11:00:18 +00:00
Georg Brandl
fe7dd50907
#1934 : fix os.path.isabs docs.
2008-01-26 09:43:35 +00:00
Raymond Hettinger
dee3f65d98
Revert PySet_Add() changes.
2008-01-26 09:31:11 +00:00
Raymond Hettinger
d375723365
Update test code for change to PySet_Add().
2008-01-26 08:41:13 +00:00
Raymond Hettinger
b423f02aa5
Let marshal build-up sets and frozensets one element at a time.
...
Saves the unnecessary creation of a tuple as intermediate container.
2008-01-26 08:37:28 +00:00
Neal Norwitz
08b50eb3d3
The OS X buildbot had errors with the unavailable exceptions disabled. Restore it.
2008-01-26 08:26:00 +00:00
Raymond Hettinger
7c1be2a3b1
Make PySet_Add() work with frozensets. Works like PyTuple_SetItem() to build-up values in a brand new frozenset.
2008-01-26 08:19:06 +00:00
Neal Norwitz
960efe9c2d
Fix exception in tearDown on ppc buildbot. If there's no directory,
...
that shouldn't cause the test to fail. Just like it setUp.
2008-01-26 07:38:03 +00:00
Neal Norwitz
653272f0cf
Use a condition variable (threading.Event) rather than sleeps and checking a
...
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.
2008-01-26 07:26:12 +00:00
Neal Norwitz
5be3067742
Prevent this test from failing if there are transient network problems
...
by retrying the host for up to 3 times.
2008-01-26 05:54:48 +00:00
Thomas Wouters
00417a3b5d
Make 'testall' work again when building in a separate directory.
...
test_distutils still fails when doing that.
2008-01-26 01:47:05 +00:00
Thomas Wouters
a97744c9d9
Use the right (portable) definition of the max of a Py_ssize_t.
2008-01-25 21:09:34 +00:00
Guido van Rossum
8d5cf4ed57
Rewrite the list_inline_repeat overflow check slightly differently.
2008-01-25 19:50:26 +00:00
Raymond Hettinger
3dbd4c536d
Changes 54857 and 54840 broke code and were reverted in Py2.5 just before
...
it was released, but that reversion never made it to the Py2.6 head.
2008-01-25 19:24:46 +00:00
Christian Heimes
8608d91e07
Added the Python core headers Include/*.h and pyconfig.h as dependencies for the extensions in Modules/
...
It forces a rebuild of all extensions when a header files has been modified
2008-01-25 15:52:11 +00:00
Christian Heimes
543cabc842
setup.py doesn't pick up changes to a header file
2008-01-25 14:54:23 +00:00
Christian Heimes
7f39c9fcbb
Backport of several functions from Python 3.0 to 2.6 including PyUnicode_FromString, PyUnicode_Format and PyLong_From/AsSsize_t. The functions are partly required for the backport of the bytearray type and _fileio module. They should also make it easier to port C to 3.0.
...
First chapter of the Python 3.0 io framework back port: _fileio
The next step depends on a working bytearray type which itself depends on a backport of the nwe buffer API.
2008-01-25 12:18:43 +00:00
Neal Norwitz
5f95a79b2b
Add prototypes to get the mathmodule.c to compile on OSF1 5.1 (Tru64)
...
and eliminate a compiler warning in floatobject.c. There might be
a better way to go about this, but it should be good enough for now.
2008-01-25 08:04:16 +00:00
Neal Norwitz
769d0eefd7
Make the test more robust by trying to reconnect up to 3 times
...
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.
2008-01-25 06:37:23 +00:00