Neal Norwitz
8510195ceb
Prevent test_sqlite from hanging on older versions of sqlite.
...
The problem is that when trying to do the second insert, sqlite seems to sleep
for a very long time. Here is the output from strace:
read(6, "SQLite format 3\0\4\0\1\1\0@ \0\0\0\1\0\0\0\0"..., 1024) = 1024
nanosleep({4294, 966296000}, <unfinished ...>
I don't know which version this was fixed in, but 3.2.1 definitely fails.
2008-04-05 04:26:31 +00:00
Andrew M. Kuchling
b2ff8a7b0d
Various edits
2008-04-05 03:38:39 +00:00
Andrew M. Kuchling
1f2af8c6e4
Markup fix; explain what interval timers do; typo fix
2008-04-05 02:47:07 +00:00
Andrew M. Kuchling
9ff4aea24c
Minor edits
2008-04-05 02:42:20 +00:00
Trent Nelson
4bffe8293f
Revert r62152 (Issue #2550 ). Being able to observe the results of all the buildbots was certainly useful. All of the platforms that have some form of BSD lineage -- FreeBSD, OS X, Solaris and Tru64 -- all pass the test. Windows and Linux, on the other hand, don't. Windows I knew about, Linux was a surprise. Knowing this, I believe a more appropriate fix will revolve around test_support.bind_socket() -- this method needs to return a port that nothing in the system has bound already. The best way to do this may just be to rely on ephemeral ports, rather than having the user specify a desired port, then fall back to four random ports, then try 0.
2008-04-04 20:04:09 +00:00
Thomas Heller
f790648c8c
News entry for: Sync with files from the just released libffi 3.0.5 version.
2008-04-04 19:43:25 +00:00
Thomas Heller
c4ef47611f
More files from libffi 3.0.5.
...
Removed libffi.pc.in because it is not needed for ctypes.
2008-04-04 19:14:42 +00:00
Trent Nelson
b8e120c7c0
Issue 2550: extend test_socket.py to test SO_REUSEADDR semantics when bind() is called on identical (host, port) combinations in two separate sockets. This should raise an EADDRINUSE socket.error in all cases, irrespective of whether or not SO_REUSEADDR is set on the sockets. However, with Windows, when SO_REUSEADDR is set on the sockets, no error is thrown (an error is thrown when the option isn't set), which results in an extremely wedged python process whenever accept() is called on either of the bound sockets. I'm committing this test now to observe if it's only Windows that has this behaviour (via the buildbots). Note: this WILL break all Windows buildbots for now; once I've observed the results on other platforms, I'll revert, then start looking into a patch.
2008-04-04 17:26:21 +00:00
Jeffrey Yasskin
e71d8124c2
Oops again. EINTR is in errno, not signal.
2008-04-04 16:48:19 +00:00
Thomas Heller
e1929d5133
Sync with files from the just released libffi 3.0.5 version.
2008-04-04 16:01:54 +00:00
Fred Drake
449651558c
stupid, stupid, stupid!
2008-04-04 11:38:51 +00:00
Fred Drake
fe7056240b
my previous change did what I said it should not: it changed the current
...
directory to the directory in which the setup.py script lived (which made
__file__ wrong)
fixed, with test that the script is run in the current directory of the caller
2008-04-04 11:31:14 +00:00
Thomas Heller
dc96a77c3a
Issue #2544 : On HP-UX systems, use 'gcc -shared' for linking when gcc
...
is used as compiler.
2008-04-04 10:07:55 +00:00
Thomas Heller
8e8ba151dd
Issue #2543 : Make ctypes compatible (again) with Python 2.3, 2.4, and 2.5.
2008-04-04 08:35:44 +00:00
Fred Drake
46c58c17f1
- Issue #2385 : distutils.core.run_script() makes __file__ available, so the
...
controlled environment will more closely mirror the typical script
environment. This supports setup.py scripts that refer to data files.
2008-04-04 05:41:30 +00:00
Jeffrey Yasskin
2b860db35c
Doh! os.read() raises an OSError, not an IOError when it's interrupted.
...
And fix some flakiness in test_itimer_prof, which could detect that the timer
had reached 0 before the signal arrived announcing that fact.
2008-04-04 04:51:19 +00:00
Barry Warsaw
ba43774d1c
post release updates
2008-04-04 01:34:41 +00:00
Amaury Forgeot d'Arc
d7a265129c
#1733757 : the interpreter would hang on shutdown, if the function set by sys.settrace
...
calls threading.currentThread.
The correction somewhat improves the code, but it was close.
Many thanks to the "with" construct, which turns python code into C calls.
I wonder if it is not better to sys.settrace(None) just after
running the __main__ module and before finalization.
2008-04-03 23:07:55 +00:00
Trent Nelson
2aae1d92eb
Make kill_python a little more forgiving if it can't obtain a snapshot of module information for a given python[_d].exe process. Failing here was too pessimistic; the python[_d].exe process may be owned by another user, which is the case in some buildbot environments.
2008-04-03 20:00:08 +00:00
Trent Nelson
8d69c1f95f
Add the correct OutputFile values for debug builds. Fixes r62129's commit.
2008-04-03 18:48:53 +00:00
Trent Nelson
d6dffbcc28
Reimplement kill_python. The existing version had a number of flaws, namely, it didn't work for x64 and it wasn't precise about which python_d.exe it was killing -- it just killed the first one it came across that happened to have 'pcbuild\python_d.exe' or 'build\python_d.exe' in it's path. The new version has been rewritten from the ground up and now lives in PCbuild, instead of Tools\buildbot, and it has also been incorporated into the Visual Studio solution (pcbuild.sln) as 'kill_python'. The solution has also been altered such that kill_python is called where necessary in the build process in order to prevent any linking errors due to open file locks. In lieu of this, all of the existing bits and pieces in Tools\buildbot that called out to kill_python at various points have also been removed as they are now obsolete. Tested on both Win32 and x64.
...
Change set (included to improve usefulness of svnmerge log entry):
M PCbuild\pythoncore.vcproj
M PCbuild\pcbuild.sln
M PCbuild\release.vsprops
A PCbuild\kill_python.vcproj
M PCbuild\debug.vsprops
A PCbuild\kill_python.c
D Tools\buildbot\kill_python.bat
D Tools\buildbot\kill_python.mak
M Tools\buildbot\build.bat
D Tools\buildbot\Makefile
M Tools\buildbot\build-amd64.bat
M Tools\buildbot\buildmsi.bat
D Tools\buildbot\kill_python.c
2008-04-03 18:27:06 +00:00
Trent Nelson
980c598936
Remove the building of Berkeley DB step; _bsddb44.vcproj takes care of this for us now.
2008-04-03 15:39:17 +00:00
Barry Warsaw
01d71f9766
Post tag version tweak
2008-04-03 04:14:19 +00:00
Barry Warsaw
b1a896433d
Create the tag for 2.6a2
2008-04-03 04:11:10 +00:00
Barry Warsaw
9649cdd5d4
Updating for 2.6a2
2008-04-03 04:10:02 +00:00
Benjamin Peterson
b23550049d
Suggested proposed changes to Python be considered on some mailing lists first
2008-04-02 21:20:35 +00:00
Amaury Forgeot d'Arc
f7cf388c31
Remove debug prints; the buildbot now passes the tests
2008-04-02 21:18:46 +00:00
Vinay Sajip
89a01cd44b
Added updates with respect to recent changes to TimedRotatingFileHandler.
2008-04-02 21:17:25 +00:00
Vinay Sajip
b7edfc4e17
Added updates with respect to recent changes to TimedRotatingFileHandler.
2008-04-02 21:10:23 +00:00
Vinay Sajip
e5aefa0b30
Fix : #2315 , #2316 , #2317 : TimedRotatingFileHandler - changed logic to better handle daylight savings time, deletion of old log files, and fixed a bug in calculating rollover when no logging occurs for a longer interval than the rollover period.
2008-04-02 21:09:27 +00:00
Trent Nelson
dbc114af0a
Update information pertaining to building external components, as well as notes on x64 builds. This file now accurately describes the build process as is; however, there's still a lot of room for improvement, especially with regards to how we build Tcl/Tk, Tix, and OpenSSL. Watch this space for further improvements.
2008-04-02 15:01:00 +00:00
Neal Norwitz
d0a91afa70
Apply same patch from 3k branch to try and prevent this test from hanging
...
on various platforms, most recently the Alpha Tru64.
2008-04-02 05:54:27 +00:00
Jeffrey Yasskin
ab56131720
Try to make test_signal less flaky. I still see some flakiness in
...
test_itimer_prof.
2008-04-02 04:07:44 +00:00
Amaury Forgeot d'Arc
cb0f2ad0c2
A DocTestSuite cannot run multiple times: it clears its globals dictionary after the first run.
...
Rebuild the DocTestSuite on each iteration.
2008-04-02 00:55:04 +00:00
Amaury Forgeot d'Arc
4d0c1170ef
Correct the apparent refleak in test_io:
...
When cls is an ABCMeta, every call to isinstance(x, cls)
records type(x) in the cls._abc_cache of cls_abc_negative_cache.
So we clear these caches at the end of the test.
inspect.isabstract() is not the correct test for all ABCs, because there is no @abstractmethod in io.py (why?)
isinstance(cls, ABCMeta) would be more exact, but it fails with an infinite recursion.
So I used a hack to determine whether a class is an ABCMeta.
The true correction would be to turn cls._abc_cache &co into a WeakSet, as py3k does.
But classic classes are not weak referenceable...
Of course, this change should not be merged into the py3k branch.
2008-04-02 00:25:14 +00:00
Guido van Rossum
b1ba750226
Remove the advertising clause from the BSD license in timing.h.
...
I have the email trail to prove that George Neville-Neil approved this.
2008-04-01 23:57:36 +00:00
Amaury Forgeot d'Arc
f0a49708eb
Newly enabled test appears to leak:
...
it registers the same codec on each iteration.
Do it only once at load time.
2008-04-01 22:52:48 +00:00
Amaury Forgeot d'Arc
ce6f6c12c6
Fix and enable a skipped test:
...
with python 2.6, enumerating bytes yields 1-char strings, not numbers.
Don't merge this into the py3k branch.
2008-04-01 22:37:33 +00:00
Brett Cannon
8820f2a979
Add ``if __name__ == '__main__'`` to some test files where it didn't take a lot
...
of effort to do so.
2008-04-01 12:46:02 +00:00
Brett Cannon
8d2a90af2d
Generalize test.test_support.test_stdout() with a base context manager so that
...
it is easy to capture stderr if desired.
2008-04-01 12:37:43 +00:00
Neal Norwitz
d48a2f77f0
Be sure to close the file. 2 places were deleting the file, so it was probably
...
fine, but the last change may be required for the test to pass on Windows.
Should we always close the mmap too?
2008-04-01 05:40:43 +00:00
Benjamin Peterson
092a1f7ad7
PyErr_Warn is decrepated. Use PyErr_WarnEx
2008-03-31 21:57:13 +00:00
Martin v. Löwis
affbe80a54
Merged revisions 61990-62079 via svnmerge from
...
svn+ssh://pythondev@svn.python.org/sandbox/trunk/2to3/lib2to3
........
r62017 | david.wolever | 2008-03-28 21:54:37 +0100 (Fr, 28 Mär 2008) | 1 line
Fixed an out-of-date comment.
........
2008-03-31 05:20:55 +00:00
Neal Norwitz
371d1747f9
Use file.write instead of print to make it easier to merge with 3k.
2008-03-31 04:28:40 +00:00
Jeffrey Yasskin
105f3d4fdc
Block the sys.exc_clear -3 warning from threading.py.
2008-03-31 00:35:53 +00:00
Georg Brandl
e34c21c2a0
Make AST nodes pickleable.
2008-03-30 20:20:39 +00:00
Georg Brandl
1721e75749
Fix error message -- "expects either 0 or 0 arguments"
2008-03-30 19:43:27 +00:00
Georg Brandl
1c88e0f52c
The other download formats will be available for 2.6 too.
2008-03-30 19:41:39 +00:00
Benjamin Peterson
9d0b604ab8
Updated README regarding doc formats
2008-03-30 19:35:10 +00:00
Georg Brandl
2c55c597fa
Make _fields attr for no fields consistent with _attributes attr.
2008-03-30 19:00:49 +00:00