Commit graph

43198 commits

Author SHA1 Message Date
Ned Deily
09f6ab0d0f Issue #8716: Back out temporary changeset 18ce15f841cf 2011-07-05 15:09:32 -07:00
Ned Deily
8c653e094b Issue #8716: Add temporary code for 2.7 to help diagnose buildbot failure. 2011-07-05 14:16:03 -07:00
Victor Stinner
b78fed9ee6 Issue #12493: skip test_communicate_eintr() if signal.SIGALRM is missing 2011-07-05 14:50:35 +02:00
Victor Stinner
e790131dc6 Issue #12493: subprocess: communicate() handles EINTR
subprocess.Popen.communicate() now also handles EINTR errors if the process has
only one pipe.
2011-07-05 14:08:01 +02:00
Victor Stinner
4c41f84033 test_io: make quiet the DeprecationWarning('classic int division') 2011-07-05 13:29:26 +02:00
Victor Stinner
42dcc679c2 test_array: make quiet the DeprecationWarning 2011-07-05 13:14:17 +02:00
Victor Stinner
49d495fa25 Issue #12429: Skip interrupted write tests on FreeBSD <= 7
On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.
2011-07-04 11:44:46 +02:00
Ned Deily
eee1048e7b Issue #8716: Fix errors in the non-OS X path of the 27 backport. 2011-07-03 23:16:49 -07:00
Ned Deily
46268c49f6 Issue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
test_tk or test_ttk_guionly under a username that is not currently logged
in to the console windowserver (as may be the case under buildbot or ssh).
2011-07-03 21:52:35 -07:00
Ned Deily
9a7a4cc3a7 Issue #10734: Temporarily disable test_ttk test_heading_callback on 2.7 as well. 2011-07-03 21:37:03 -07:00
Victor Stinner
65c153547b Issue #12467: warnings: fix a race condition if a warning is emitted at
shutdown, if globals()['__file__'] is None.
2011-07-04 03:05:37 +02:00
Senthil Kumaran
13502b19c6 Fix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an incorrect arg. 2011-07-03 17:38:53 -07:00
Charles-François Natali
7c20ad32fd Issue #12352: In test_free_from_gc(), restore the GC thresholds even if the GC
wasn't enabled at first.
2011-07-02 14:08:27 +02:00
Charles-François Natali
414d0faedc Issue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by
the garbage collector while the Heap lock is held.
2011-07-02 13:56:19 +02:00
Victor Stinner
041d2e1e1e Issue #11870: Skip test_threading.test_2_join_in_forked_process() on platforms
with known OS bugs

Share the list of platforms with known OS bugs with other tests. Patch written
by Charles-François Natali.
2011-07-01 15:04:03 +02:00
Raymond Hettinger
bf7a266074 Fixup repr for dict_proxy objects. 2011-06-30 00:44:36 +01:00
Ned Deily
041645a8cb Issue #9516: Change distutils to no longer globally attempt to check and
set the MACOSX_DEPLOYMENT_TARGET env variable for the interpreter process
on OS X.  This could cause failures in non-distutils subprocesses and was
unreliable since tests or user programs could modify the interpreter
environment after distutils set it.  Instead, have distutils set the
the deployment target only in the environment of each build subprocess.

Continue to use the previous algorithm for deriving the deployment target
value:
    if MACOSX_DEPLOYMENT_TARGET is not set in the interpreter's env:
        use the interpreter build configure MACOSX_DEPLOYMENT_TARGET
    elif the MACOSX_DEPLOYMENT_TARGET env value >= configure value:
        use the env MACOSX_DEPLOYMENT_TARGET
    else: # env value less than interpreter build configure value
        raise exception
This allows building extensions that can only run on newer versions of
the OS than the version python was built for, for example with a python
built for 10.3 or later and an extension that needs to be built for 10.5.
2011-06-28 19:40:39 -07:00
Ned Deily
053c6ad6b7 Issue #9516: Correct and expand OS X deployment target tests in distutils
test_build_ext.
2011-06-28 19:39:10 -07:00
Ned Deily
63144c6444 Issue #12141: Install a copy of template C module file so that
test_build_ext of test_distutils is no longer silently skipped when
run outside of a build directory.
2011-06-28 00:39:19 -07:00
Ned Deily
43e1054e38 Issue #8746: Correct faulty configure checks so that os.chflags() and
os.lchflags() are once again built on systems that support these
functions (*BSD and OS X).  Also add new stat file flags for OS X
(UF_HIDDEN and UF_COMPRESSED).  Also add additional tests for
os.chflags() and os.lchflags(). (Tests by Garrett Cooper)
2011-06-27 23:41:53 -07:00
Ned Deily
64e59959f2 Issue #10736: Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
on Mac OS X.  (Patch by Ronald Oussoren)
2011-06-27 23:09:31 -07:00
Benjamin Peterson
c98198d3ca fix ws 2011-06-27 17:51:18 -05:00
Benjamin Peterson
90ebedc626 add more ast tests (closes #11302)
A patch from Vincent Legoll.
2011-06-27 17:46:06 -05:00
Benjamin Peterson
cfb7731dd2 strip trailing ws 2011-06-27 09:18:46 -05:00
Benjamin Peterson
7e6b3aac85 update profile license (closes #12417) 2011-06-27 09:14:34 -05:00
Senthil Kumaran
e4ef726879 Fix closes issue1067702 The problem with close multiple ftp transfers were due cases where sockets/file were not closed immediately. Tightned those cases and failure is no longer observed. 2011-06-26 13:45:17 -07:00
Raymond Hettinger
2c316a3e29 Issue 11802: filecmp cache was growing without bound. 2011-06-25 17:14:53 +02:00
Raymond Hettinger
67a3e8336f Issue 10326: Fix regression to get test cases to pickle again. 2011-06-25 12:16:25 +02:00
Raymond Hettinger
cba87311d2 Code simplification suggested by Sven Marnach. 2011-06-25 11:24:35 +02:00
Victor Stinner
ecb863b29e Revert d370d609d09b as requested by Terry Jan Reedy:
"#3067: locale.setlocale() accepts a Unicode locale."
2011-06-20 22:07:06 +02:00
Victor Stinner
f64a0cffca Issue #12285: multiprocessing.Pool() raises a ValueError if the number of
processes if negative or null.
2011-06-20 17:54:33 +02:00
Victor Stinner
c36c6ccb41 Close #3067: locale.setlocale() accepts a Unicode locale. 2011-06-20 16:14:48 +02:00
R David Murray
f1138bb1b6 #11700: proxy object close methods can now be called multiple times
This makes them work like the close provided by regular file objects.  This
patch also backports the close-the-underlying-file code for _ProxyFile objects
that was introduced along with context manager support in the 3.x branch.
2011-06-17 22:23:04 -04:00
Victor Stinner
c74a6ba2d6 Issue #12133: AbstractHTTPHandler.do_open() of urllib.request closes the HTTP
connection if its getresponse() method fails with a socket error. Patch written
by Ezio Melotti.
2011-06-17 14:06:27 +02:00
Benjamin Peterson
0eb4ac4c62 allow "fake" filenames in findsource (closes #9284)
This allows findsource() to work in doctests.

A patch from Dirkjan Ochtman.
2011-06-11 15:53:11 -05:00
Benjamin Peterson
a573e0df36 merge 2.7.2 release branch 2011-06-11 09:51:21 -05:00
Benjamin Peterson
377510d2d9 update pydoc-topics 2011-06-11 09:50:21 -05:00
Benjamin Peterson
9843ba5e54 bump to 2.7.2 final 2011-06-11 09:42:44 -05:00
Éric Araujo
6280606a57 Adjust logging in packaging.util.spawn (related to #11599) 2011-06-11 09:46:07 +02:00
Éric Araujo
643cb7345f Allow multiple setup hooks in packaging’s setup.cfg files (#12240).
Original patch by Erik Bray.
2011-06-11 00:33:38 +02:00
Éric Araujo
8474f2901b setup.cfg: Document that description-file can contain more than one file 2011-06-11 00:21:18 +02:00
Éric Araujo
3605030c9b Fix assorted bugs in packaging.util.cfg_to_args (#11595).
Original patch by Erik Bray.
2011-06-10 23:52:26 +02:00
Éric Araujo
1c1d9a5026 Move useful function to packaging.util.
Original patch by Erik Bray as part of #11595, changed by me to improve
readability.
2011-06-10 23:26:31 +02:00
Benjamin Peterson
49aaad3c47 merge heads 2011-06-10 12:32:07 -05:00
Benjamin Peterson
ae10b3201c merge 3.2 (#12009) 2011-06-10 12:30:16 -05:00
Benjamin Peterson
9aa68e4b32 merge 3.1 (#12009) 2011-06-10 12:29:40 -05:00
Éric Araujo
df55334d52 Branch merge 2011-06-10 18:34:45 +02:00
Benjamin Peterson
b30d5c711e merge heads 2011-06-10 11:33:58 -05:00
Benjamin Peterson
8b8162d868 merge 2.7.2 release branch with fix for #12009 2011-06-10 11:33:41 -05:00
Benjamin Peterson
1df0f214a9 fix regression in netrc comment handling (closes #12009) 2011-06-10 11:32:52 -05:00