]> git.ipfire.org Git - thirdparty/Python/cpython.git/log
thirdparty/Python/cpython.git
14 years agomerge from 3.2
Senthil Kumaran [Mon, 4 Jul 2011 18:44:17 +0000 (11:44 -0700)] 
merge from 3.2

14 years agoFix whitespace nit in datetime and os rst files.
Senthil Kumaran [Mon, 4 Jul 2011 18:43:51 +0000 (11:43 -0700)] 
Fix whitespace nit in datetime and os rst files.

14 years agoMerge from 3.2 . Replace the term members with correct and appropriate terminology...
Senthil Kumaran [Mon, 4 Jul 2011 18:31:53 +0000 (11:31 -0700)] 
Merge from 3.2 . Replace the term members with correct  and appropriate terminology. Initial patch by Adam Woodbeck.

14 years agoissue10403 - Let's not use members anymore. Use 'attribute' where it denotes attribut...
Senthil Kumaran [Mon, 4 Jul 2011 18:28:30 +0000 (11:28 -0700)] 
issue10403 - Let's not use members anymore. Use 'attribute' where it denotes attribute and 'methods' where it denotes methods. Context should clarify usage.

14 years agoMerge with 3.2.
Georg Brandl [Mon, 4 Jul 2011 17:58:12 +0000 (19:58 +0200)] 
Merge with 3.2.

14 years agoMerge 3.2.1 release clone changes into main 3.2 branch after 3.2.1rc2 release.
Georg Brandl [Mon, 4 Jul 2011 17:55:22 +0000 (19:55 +0200)] 
Merge 3.2.1 release clone changes into main 3.2 branch after 3.2.1rc2 release.

14 years agoIssue #12469: replace assertions by explicit if+raise
Victor Stinner [Mon, 4 Jul 2011 16:06:35 +0000 (18:06 +0200)] 
Issue #12469: replace assertions by explicit if+raise

14 years ago(merge 3.2) Issue #12469: Run wakeup and pending signal tests in a subprocess
Victor Stinner [Mon, 4 Jul 2011 15:49:40 +0000 (17:49 +0200)] 
(merge 3.2) Issue #12469: Run wakeup and pending signal tests in a subprocess
to run the test in a fresh process with only one thread and to not change
signal handling of the parent process.

14 years agoIssue #12469: Run "wakeup" signal tests in subprocess to run the test in a
Victor Stinner [Mon, 4 Jul 2011 15:35:10 +0000 (17:35 +0200)] 
Issue #12469: Run "wakeup" signal tests in subprocess to run the test in a
fresh process with only one thread and to not change signal handling of the
parent process.

14 years agoIssue #12452: Plist and Dict are now deprecated
Victor Stinner [Mon, 4 Jul 2011 12:28:45 +0000 (14:28 +0200)] 
Issue #12452: Plist and Dict are now deprecated

Replace PendingDeprecationWarning warnings by DeprecationWarning.

14 years agoIssue #9642: Uniformize the tests on the availability of the mbcs codec
Victor Stinner [Mon, 4 Jul 2011 12:23:54 +0000 (14:23 +0200)] 
Issue #9642: Uniformize the tests on the availability of the mbcs codec

Add a new HAVE_MBCS define.

14 years agoIssue #9642: Fix the definition of time.clock() on Windows
Victor Stinner [Mon, 4 Jul 2011 11:55:40 +0000 (13:55 +0200)] 
Issue #9642: Fix the definition of time.clock() on Windows

Don't unset and set againt the HAVE_CLOCK define, reorder the #if tests
instead. Fix also the definition of the timezone encoding.

14 years agoIssue #9642: Fix filesystem encoding initialization: use the ANSI code page on
Victor Stinner [Mon, 4 Jul 2011 11:48:30 +0000 (13:48 +0200)] 
Issue #9642: Fix filesystem encoding initialization: use the ANSI code page on
Windows if the mbcs codec is not available, and fail with a fatal error if we
cannot get the locale encoding (if nl_langinfo(CODESET) is not available)
instead of using UTF-8.

14 years agonull merge 3.2
Victor Stinner [Mon, 4 Jul 2011 09:51:21 +0000 (11:51 +0200)] 
null merge 3.2

Python 3.3 has the correct fix for #12429, use pthread_sigmask().

14 years agoIssue #12429: Skip interrupted write tests on FreeBSD <= 7
Victor Stinner [Mon, 4 Jul 2011 09:48:17 +0000 (11:48 +0200)] 
Issue #12429: Skip interrupted write tests on FreeBSD <= 7

On FreeBSD, the SIGALRM signal is sometimes received by the reader thread.

14 years agoIssue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
Ned Deily [Mon, 4 Jul 2011 05:27:16 +0000 (22:27 -0700)] 
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).

14 years agoIssue #8716: Avoid crashes caused by Aqua Tk on OSX when attempting to run
Ned Deily [Mon, 4 Jul 2011 04:56:48 +0000 (21:56 -0700)] 
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).

14 years agomerge from 3.2
Senthil Kumaran [Mon, 4 Jul 2011 04:05:25 +0000 (21:05 -0700)] 
merge from 3.2

14 years agoFix closes issue12471 - wrong TypeError message when '%i' format spec was used.
Senthil Kumaran [Mon, 4 Jul 2011 04:03:16 +0000 (21:03 -0700)] 
Fix closes issue12471 - wrong TypeError message when '%i' format spec was used.

14 years agomerge 3.2
Benjamin Peterson [Mon, 4 Jul 2011 03:19:29 +0000 (22:19 -0500)] 
merge 3.2

14 years agoplug refleak
Benjamin Peterson [Mon, 4 Jul 2011 03:18:34 +0000 (22:18 -0500)] 
plug refleak

14 years agomerge from 3.2
Senthil Kumaran [Mon, 4 Jul 2011 01:22:14 +0000 (18:22 -0700)] 
merge from 3.2

14 years agoFix closes issue issue12470 - check for utime for the skipUnless condition.
Senthil Kumaran [Mon, 4 Jul 2011 01:21:38 +0000 (18:21 -0700)] 
Fix closes issue issue12470 - check for utime for the skipUnless condition.

14 years ago(merge 3.2) Issue #12467: warnings: fix a race condition if a warning is
Victor Stinner [Mon, 4 Jul 2011 00:56:10 +0000 (02:56 +0200)] 
(merge 3.2) Issue #12467: warnings: fix a race condition if a warning is
emitted at shutdown, if globals()['__file__'] is None.

14 years agoIssue #12467: warnings: fix a race condition if a warning is emitted at
Victor Stinner [Mon, 4 Jul 2011 00:43:09 +0000 (02:43 +0200)] 
Issue #12467: warnings: fix a race condition if a warning is emitted at
shutdown, if globals()['__file__'] is None.

14 years agoPost-release steps.
Georg Brandl [Mon, 4 Jul 2011 06:20:48 +0000 (08:20 +0200)] 
Post-release steps.

14 years agoIssue #12467: warnings: fix a race condition if a warning is emitted at
Victor Stinner [Mon, 4 Jul 2011 00:43:09 +0000 (02:43 +0200)] 
Issue #12467: warnings: fix a race condition if a warning is emitted at
shutdown, if globals()['__file__'] is None.

14 years agoMerge from 3.2. 'idle_formatwarning' is the correct method name.
Senthil Kumaran [Mon, 4 Jul 2011 00:40:39 +0000 (17:40 -0700)] 
Merge from 3.2.  'idle_formatwarning' is the correct method name.

14 years agoFix closes issue12438 - idlelib.PyShell's showformatwarning method was passing an...
Senthil Kumaran [Mon, 4 Jul 2011 00:39:20 +0000 (17:39 -0700)] 
Fix closes issue12438  - idlelib.PyShell's showformatwarning method was passing an incorrect arg.

14 years agomerge from 3.2
Senthil Kumaran [Mon, 4 Jul 2011 00:21:44 +0000 (17:21 -0700)] 
merge from 3.2

14 years agoFix closes issue12432 - remove the unused sys from glob.py
Senthil Kumaran [Mon, 4 Jul 2011 00:21:05 +0000 (17:21 -0700)] 
Fix closes issue12432 - remove the unused sys from glob.py

14 years ago(merge 3.2) Issue #12451: pydoc: importfile() now opens the Python script in
Victor Stinner [Mon, 4 Jul 2011 00:09:44 +0000 (02:09 +0200)] 
(merge 3.2) Issue #12451: pydoc: importfile() now opens the Python script in
binary mode, instead of text mode using the locale encoding, to avoid encoding
issues.

14 years agoIssue #12451: pydoc: importfile() now opens the Python script in binary mode,
Victor Stinner [Mon, 4 Jul 2011 00:08:50 +0000 (02:08 +0200)] 
Issue #12451: pydoc: importfile() now opens the Python script in binary mode,
instead of text mode using the locale encoding, to avoid encoding issues.

14 years ago(merge 3.2) Issue #12451: runpy: run_path() now opens the Python script in
Victor Stinner [Sun, 3 Jul 2011 23:47:40 +0000 (01:47 +0200)] 
(merge 3.2) Issue #12451: runpy: run_path() now opens the Python script in
binary mode, instead of text mode using the locale encoding, to support other
encodings than UTF-8 (scripts using the coding cookie).

14 years agoIssue #12451: runpy: run_path() now opens the Python script in binary mode,
Victor Stinner [Sun, 3 Jul 2011 23:45:39 +0000 (01:45 +0200)] 
Issue #12451: runpy: run_path() now opens the Python script in binary mode,
instead of text mode using the locale encoding, to support other encodings than
UTF-8 (scripts using the coding cookie).

14 years ago(merge 3.2) Issue #12451: xml.dom.pulldom: parse() now opens files in binary
Victor Stinner [Sun, 3 Jul 2011 23:27:37 +0000 (01:27 +0200)] 
(merge 3.2) Issue #12451: xml.dom.pulldom: parse() now opens files in binary
mode instead of the text mode (using the locale encoding) to avoid encoding
issues.

14 years agoIssue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead
Victor Stinner [Sun, 3 Jul 2011 23:25:55 +0000 (01:25 +0200)] 
Issue #12451: xml.dom.pulldom: parse() now opens files in binary mode instead
of the text mode (using the locale encoding) to avoid encoding issues.

14 years agothis is expressed better as a for loop
Benjamin Peterson [Sun, 3 Jul 2011 22:23:22 +0000 (17:23 -0500)] 
this is expressed better as a for loop

14 years agono one passes NULL here (or should anyway)
Benjamin Peterson [Sun, 3 Jul 2011 22:06:32 +0000 (17:06 -0500)] 
no one passes NULL here (or should anyway)

14 years agoconvert generator exc state functions into static functions
Benjamin Peterson [Sun, 3 Jul 2011 21:48:31 +0000 (16:48 -0500)] 
convert generator exc state functions into static functions

14 years agomerge 3.2
Benjamin Peterson [Sun, 3 Jul 2011 21:27:41 +0000 (16:27 -0500)] 
merge 3.2

14 years agonever retain a generator's caller's exception state on the generator after a yield...
Benjamin Peterson [Sun, 3 Jul 2011 21:25:11 +0000 (16:25 -0500)] 
never retain a generator's caller's exception state on the generator after a yield/return

This requires some trickery to properly save the exception state if the
generator creates its own exception state.

14 years agomerge 3.2
Benjamin Peterson [Sun, 3 Jul 2011 18:50:16 +0000 (13:50 -0500)] 
merge 3.2

14 years agoadd '
Benjamin Peterson [Sun, 3 Jul 2011 18:49:59 +0000 (13:49 -0500)] 
add '

14 years agomerge 3.2 (#12475)
Benjamin Peterson [Sun, 3 Jul 2011 18:48:36 +0000 (13:48 -0500)] 
merge 3.2 (#12475)

14 years agomerge heads
Benjamin Peterson [Sun, 3 Jul 2011 18:45:33 +0000 (13:45 -0500)] 
merge heads

14 years agomerge heads
Benjamin Peterson [Sun, 3 Jul 2011 18:44:56 +0000 (13:44 -0500)] 
merge heads

14 years agorestore a generator's caller's exception state both on yield and (last) return
Benjamin Peterson [Sun, 3 Jul 2011 18:44:00 +0000 (13:44 -0500)] 
restore a generator's caller's exception state both on yield and (last) return

This prevents generator exception state from leaking into the caller.

Closes #12475.

14 years agomerge 3.2
Benjamin Peterson [Sun, 3 Jul 2011 18:32:17 +0000 (13:32 -0500)] 
merge 3.2

14 years agoadd 3.2.2 heading
Benjamin Peterson [Sun, 3 Jul 2011 18:31:34 +0000 (13:31 -0500)] 
add 3.2.2 heading

14 years agomerge from 3.2
Senthil Kumaran [Sun, 3 Jul 2011 17:23:43 +0000 (10:23 -0700)] 
merge from 3.2

14 years agoRemove mention of medical condition from the test suite.
Georg Brandl [Sun, 3 Jul 2011 17:22:42 +0000 (19:22 +0200)] 
Remove mention of medical condition from the test suite.

14 years agoreST indentation fix in sqlite3 docs. rst uses 3 space indentation.
Senthil Kumaran [Sun, 3 Jul 2011 17:17:22 +0000 (10:17 -0700)] 
reST indentation fix in sqlite3 docs. rst uses 3 space indentation.

14 years agoFollowup to 51c1f2cedb96 (and issue #12456):
Antoine Pitrou [Sun, 3 Jul 2011 11:17:06 +0000 (13:17 +0200)] 
Followup to 51c1f2cedb96 (and issue #12456):
qsize() raises NotImplementedError on OS X, don't use it.

14 years agoAdded tag v3.2.1rc2 for changeset 5df549718fb4
Georg Brandl [Sun, 3 Jul 2011 09:54:09 +0000 (11:54 +0200)] 
Added tag v3.2.1rc2 for changeset 5df549718fb4

14 years agoIssue #12406: Added upates for packaging's .exe files, command_template, and sysconfi...
Vinay Sajip [Sun, 3 Jul 2011 09:35:41 +0000 (10:35 +0100)] 
Issue #12406: Added upates for packaging's .exe files, command_template, and sysconfig.cfg.

14 years agoNEWS rewrap. v3.2.1rc2
Georg Brandl [Sun, 3 Jul 2011 07:42:43 +0000 (09:42 +0200)] 
NEWS rewrap.

14 years agoBump to 3.2.1rc2.
Georg Brandl [Sun, 3 Jul 2011 07:41:27 +0000 (09:41 +0200)] 
Bump to 3.2.1rc2.

14 years agoFix bad markup.
Georg Brandl [Sun, 3 Jul 2011 07:39:49 +0000 (09:39 +0200)] 
Fix bad markup.

14 years agoUpdate pydoc topics.
Georg Brandl [Sun, 3 Jul 2011 07:31:04 +0000 (09:31 +0200)] 
Update pydoc topics.

14 years agoFix target path in message.
Georg Brandl [Sun, 3 Jul 2011 07:30:42 +0000 (09:30 +0200)] 
Fix target path in message.

14 years agoDummy-merge configure change from 3.2 that is already in default.
Georg Brandl [Sun, 3 Jul 2011 07:25:32 +0000 (09:25 +0200)] 
Dummy-merge configure change from 3.2 that is already in default.

14 years agoRegenerate configure.
Georg Brandl [Sun, 3 Jul 2011 07:23:20 +0000 (09:23 +0200)] 
Regenerate configure.

14 years agomerge #12147: make send_message correctly handle Sender and Resent- headers.
R David Murray [Sun, 3 Jul 2011 01:10:44 +0000 (21:10 -0400)] 
merge #12147: make send_message correctly handle Sender and Resent- headers.

14 years ago#12147: make send_message correctly handle Sender and Resent- headers.
R David Murray [Sun, 3 Jul 2011 01:03:19 +0000 (21:03 -0400)] 
#12147: make send_message correctly handle Sender and Resent- headers.

Original patch by Nicolas Estibals.  My tweaks to the patch were mostly
style/cosmetic, and adding more tests.

14 years agoIssue #12456: fix a possible hang on shutdown of a concurrent.futures.ProcessPoolExec...
Antoine Pitrou [Sat, 2 Jul 2011 19:20:25 +0000 (21:20 +0200)] 
Issue #12456: fix a possible hang on shutdown of a concurrent.futures.ProcessPoolExecutor.

14 years agoCorrect uninitialized data problem in marshal code.
Vinay Sajip [Sat, 2 Jul 2011 17:42:21 +0000 (18:42 +0100)] 
Correct uninitialized data problem in marshal code.

14 years agoMerged unused variable removal from 3.2.
Vinay Sajip [Sat, 2 Jul 2011 16:22:58 +0000 (17:22 +0100)] 
Merged unused variable removal from 3.2.

14 years agoRemoved some unused local variables.
Vinay Sajip [Sat, 2 Jul 2011 16:21:37 +0000 (17:21 +0100)] 
Removed some unused local variables.

14 years agoRemoved breaking typo accidentally introduced during merge with 3.2.
Vinay Sajip [Sat, 2 Jul 2011 16:19:51 +0000 (17:19 +0100)] 
Removed breaking typo accidentally introduced during merge with 3.2.

14 years agoCloses #12291 for 3.3 - merged fix from 3.2.
Vinay Sajip [Sat, 2 Jul 2011 16:16:02 +0000 (17:16 +0100)] 
Closes #12291 for 3.3 - merged fix from 3.2.

14 years agoCloses #12291: Fixed bug which was found when doing multiple loads from one stream.
Vinay Sajip [Sat, 2 Jul 2011 15:42:47 +0000 (16:42 +0100)] 
Closes #12291: Fixed bug which was found when doing  multiple loads from one stream.

14 years agoClean up NEWS entry and tests for shutil.disk_usage (#12442)
Éric Araujo [Sat, 2 Jul 2011 14:45:45 +0000 (16:45 +0200)] 
Clean up NEWS entry and tests for shutil.disk_usage (#12442)

14 years agofix possibily uninitialized memory usage (closes #12474)
Benjamin Peterson [Sat, 2 Jul 2011 14:22:13 +0000 (09:22 -0500)] 
fix possibily uninitialized memory usage (closes #12474)

14 years agoMerge issue #12352: Fix a deadlock in multiprocessing.Heap when a block is
Charles-François Natali [Sat, 2 Jul 2011 12:43:11 +0000 (14:43 +0200)] 
Merge issue #12352: Fix a deadlock in multiprocessing.Heap when a block is
freed by the garbage collector while the Heap lock is held.

14 years agoMerge issue #12352: Fix a deadlock in multiprocessing.Heap when a block is
Charles-François Natali [Sat, 2 Jul 2011 12:39:53 +0000 (14:39 +0200)] 
Merge issue #12352: Fix a deadlock in multiprocessing.Heap when a block is
freed by the garbage collector while the Heap lock is held.

14 years agoIssue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by
Charles-François Natali [Sat, 2 Jul 2011 12:35:49 +0000 (14:35 +0200)] 
Issue #12352: Fix a deadlock in multiprocessing.Heap when a block is freed by
the garbage collector while the Heap lock is held.

14 years agomerge #11873: another try at fixing the regex, courtesy of Victor Stinner
R David Murray [Fri, 1 Jul 2011 18:57:00 +0000 (14:57 -0400)] 
merge #11873: another try at fixing the regex, courtesy of Victor Stinner

14 years ago#11873: another try at fixing the regex, courtesy of Victor Stinner
R David Murray [Fri, 1 Jul 2011 18:55:43 +0000 (14:55 -0400)] 
#11873: another try at fixing the regex, courtesy of Victor Stinner

14 years agomerge #11873: fix test regex so it covers windows os.sep as well.
R David Murray [Fri, 1 Jul 2011 15:53:19 +0000 (11:53 -0400)] 
merge #11873: fix test regex so it covers windows os.sep as well.

14 years ago#11873: fix test regex so it covers windows os.sep as well.
R David Murray [Fri, 1 Jul 2011 15:51:50 +0000 (11:51 -0400)] 
#11873: fix test regex so it covers windows os.sep as well.

14 years ago(merge 3.2) Issue #12363: increase the timeout of siginterrupt() tests
Victor Stinner [Fri, 1 Jul 2011 13:59:54 +0000 (15:59 +0200)] 
(merge 3.2) Issue #12363: increase the timeout of siginterrupt() tests

Move also the "ready" trigger after the installation of the signal handler and
the call to siginterrupt().

Use a timeout of 5 seconds instead of 3. Two seconds are supposed to be enough,
but some of our buildbots are really slow (especially the FreeBSD 6 VM).

14 years agoIssue #12363: increase the timeout of siginterrupt() tests
Victor Stinner [Fri, 1 Jul 2011 13:58:39 +0000 (15:58 +0200)] 
Issue #12363: increase the timeout of siginterrupt() tests

Move also the "ready" trigger after the installation of the signal handler and
the call to siginterrupt().

Use a timeout of 5 seconds instead of 3. Two seconds are supposed to be enough,
but some of our buildbots are really slow (especially the FreeBSD 6 VM).

14 years ago(null merge 3.2, patch already applied to 3.3)
Victor Stinner [Fri, 1 Jul 2011 13:25:58 +0000 (15:25 +0200)] 
(null merge 3.2, patch already applied to 3.3)

14 years agoIssue #12363: improve siginterrupt() tests
Victor Stinner [Fri, 1 Jul 2011 13:24:50 +0000 (15:24 +0200)] 
Issue #12363: improve siginterrupt() tests

Backport commits 968b9ff9a059 and aff0a7b0cb12 from the default branch to 3.2
branch. Extract of the changelog messages:

"The previous tests used time.sleep() to synchronize two processes. If the host
was too slow, the test could fail.

The new tests only use one process, but they use a subprocess to:

- have only one thread
- have a timeout on the blocking read (select cannot be used in the test,
select always fail with EINTR, the kernel doesn't restart it)
- not touch signal handling of the parent process"

and

"Add a basic synchronization code between the child and the parent processes:
the child writes "ready" to stdout."

I replaced .communicate(timeout=3.0) by an explicit waiting loop using
Popen.poll().

14 years ago(merge 3.2) Issue #11870: Skip test_threading.test_2_join_in_forked_process()
Victor Stinner [Fri, 1 Jul 2011 12:53:07 +0000 (14:53 +0200)] 
(merge 3.2) 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.

14 years agoIssue #11870: Skip test_threading.test_2_join_in_forked_process() on platforms
Victor Stinner [Fri, 1 Jul 2011 12:26:24 +0000 (14:26 +0200)] 
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.

14 years agoIssue #12462: time.sleep() now calls immediatly the (Python) signal handler if
Victor Stinner [Fri, 1 Jul 2011 11:50:09 +0000 (13:50 +0200)] 
Issue #12462: time.sleep() now calls immediatly the (Python) signal handler if
it is interrupted by a signal, instead of having to wait until the next
instruction.

Patch reviewed by Antoine Pitrou.

14 years agoIssue #12442: add shutil.disk_usage()
Giampaolo Rodola' [Fri, 1 Jul 2011 11:55:36 +0000 (13:55 +0200)] 
Issue #12442: add shutil.disk_usage()

14 years ago(merge 3.2) test_os: remove now useless TemporaryFileTests testcase
Victor Stinner [Fri, 1 Jul 2011 11:47:03 +0000 (13:47 +0200)] 
(merge 3.2) test_os: remove now useless TemporaryFileTests testcase

TemporaryFileTests has tests for os.tempnam() and os.tmpfile(), functions
removed from Python 3.

Move fdopen() tests to the FileTests testcase to test fdopen() on a file
descriptor, not on a directory descriptor (which raises an error on Windows).

14 years agotest_os: remove now useless TemporaryFileTests testcase
Victor Stinner [Fri, 1 Jul 2011 11:45:30 +0000 (13:45 +0200)] 
test_os: remove now useless TemporaryFileTests testcase

TemporaryFileTests has tests for os.tempnam() and os.tmpfile(), functions
removed from Python 3.

Move fdopen() tests to the FileTests testcase to test fdopen() on a file
descriptor, not on a directory descriptor (which raises an error on Windows).

14 years ago(merge 3.2) libpython.py (gdb) now catchs IOError in py-list and py-bt commands
Victor Stinner [Fri, 1 Jul 2011 10:59:30 +0000 (12:59 +0200)] 
(merge 3.2) libpython.py (gdb) now catchs IOError in py-list and py-bt commands

py-list displays the error. py-bt ignores the error (the filename and line
number is already displayed).

14 years agolibpython.py (gdb) now catchs IOError in py-list and py-bt commands
Victor Stinner [Fri, 1 Jul 2011 10:57:44 +0000 (12:57 +0200)] 
libpython.py (gdb) now catchs IOError in py-list and py-bt commands

py-list displays the error. py-bt ignores the error (the filename and line
number is already displayed).

14 years ago(merge 3.2) test_os: add TemporaryFileTests to the testcase list
Victor Stinner [Fri, 1 Jul 2011 00:57:33 +0000 (02:57 +0200)] 
(merge 3.2) test_os: add TemporaryFileTests to the testcase list

The testcase was never executed, it's now fixed.

14 years agotest_os: add TemporaryFileTests to the testcase list
Victor Stinner [Fri, 1 Jul 2011 00:56:15 +0000 (02:56 +0200)] 
test_os: add TemporaryFileTests to the testcase list

The testcase was never executed, it's now fixed.

14 years agoIssue #12451: Add support.create_empty_file()
Victor Stinner [Thu, 30 Jun 2011 21:25:47 +0000 (23:25 +0200)] 
Issue #12451: Add support.create_empty_file()

We don't need to create a temporary buffered binary or text file object just to
create an empty file.

Replace also os.fdopen(handle).close() by os.close(handle).

14 years agoIssue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.
Antoine Pitrou [Thu, 30 Jun 2011 18:04:06 +0000 (20:04 +0200)] 
Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.

14 years agoIssue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.
Antoine Pitrou [Thu, 30 Jun 2011 18:02:54 +0000 (20:02 +0200)] 
Issue #12407: Explicitly skip test_capi.EmbeddingTest under Windows.

14 years agoIssue 12139: ftplib - remove 'post CCC' test to fix various buildot failures due...
Giampaolo Rodola' [Thu, 30 Jun 2011 16:34:41 +0000 (18:34 +0200)] 
Issue 12139: ftplib - remove 'post CCC' test to fix various buildot failures due to dummy test server not properly handling SSL shutdown(), see http://bugs.python.org/msg139499

14 years agoIssue #12451: Open the test file in binary mode in test_bz2, the text file is
Victor Stinner [Thu, 30 Jun 2011 16:25:07 +0000 (18:25 +0200)] 
Issue #12451: Open the test file in binary mode in test_bz2, the text file is
not needed.