Victor Stinner
59929d9877
(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).
2011-07-01 13:47:03 +02:00
Victor Stinner
bef7fdfc04
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).
2011-07-01 13:45:30 +02:00
Victor Stinner
c9e07a3ec8
(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).
2011-07-01 12:59:30 +02:00
Victor Stinner
d57c5c8a3a
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).
2011-07-01 12:57:44 +02:00
Victor Stinner
4497445b3f
(merge 3.2) test_os: add TemporaryFileTests to the testcase list
...
The testcase was never executed, it's now fixed.
2011-07-01 02:57:33 +02:00
Victor Stinner
98b3722bf7
test_os: add TemporaryFileTests to the testcase list
...
The testcase was never executed, it's now fixed.
2011-07-01 02:56:15 +02:00
Victor Stinner
bf816223df
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).
2011-06-30 23:25:47 +02:00
Antoine Pitrou
61600cb0c3
Issue #12407 : Explicitly skip test_capi.EmbeddingTest under Windows.
2011-06-30 20:04:06 +02:00
Antoine Pitrou
71cbafbda1
Issue #12407 : Explicitly skip test_capi.EmbeddingTest under Windows.
2011-06-30 20:02:54 +02:00
Giampaolo Rodola'
5de1532163
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
2011-06-30 18:34:41 +02:00
Victor Stinner
938f635acb
Issue #12451 : Open the test file in binary mode in test_bz2, the text file is
...
not needed.
2011-06-30 18:25:07 +02:00
Victor Stinner
2f655b73e4
(merge 3.2) Issue #12451 : Open files in binary mode in some tests when the text
...
file is not needed.
Remove also an unused variable (blank) in test_threading.
2011-06-30 18:21:39 +02:00
Victor Stinner
a6d2c769fb
Issue #12451 : Open files in binary mode in some tests when the text file is not
...
needed.
Remove also an unused variable (blank) in test_threading.
2011-06-30 18:20:11 +02:00
Victor Stinner
3909da7fca
(merge 3.2) Issue #12451 : The XInclude default loader of xml.etree now decodes
...
files from UTF-8 instead of the locale encoding if the encoding is not
specified. It now also opens XML files for the parser in binary mode instead of
the text mode to avoid encoding issues.
2011-06-30 18:11:18 +02:00
Victor Stinner
eaf399e335
Issue #12451 : The XInclude default loader of xml.etree now decodes files from
...
UTF-8 instead of the locale encoding if the encoding is not specified. It now
also opens XML files for the parser in binary mode instead of the text mode to
avoid encoding issues.
2011-06-30 18:10:14 +02:00
Victor Stinner
a0b12a1ca7
(merge 3.2) Issue #12451 : doctest.debug_script() doesn't create a temporary
...
file anymore to avoid encoding issues (it used the locale encoding, whereas
UTF-8 should be).
Remove also an unused import (warnings).
2011-06-30 17:39:17 +02:00
Victor Stinner
12b8d14991
Issue #12451 : doctest.debug_script() doesn't create a temporary file anymore to
...
avoid encoding issues (it used the locale encoding, whereas UTF-8 should be).
Remove also an unused import (warnings).
2011-06-30 17:35:55 +02:00
Victor Stinner
319672e8a6
(merge 3.2) Issue #12451 : pydoc.synopsis() now reads the encoding cookie if
...
available, to read the Python script from the right encoding.
2011-06-30 15:58:29 +02:00
Victor Stinner
e6c910e953
Issue #12451 : pydoc.synopsis() now reads the encoding cookie if available, to
...
read the Python script from the right encoding.
2011-06-30 15:55:43 +02:00
Victor Stinner
0b5e049ea0
(merge 3.2) Issue #12451 : distutils now opens the setup script in binary mode
...
to read the encoding cookie, instead of opening it in UTF-8.
2011-06-30 15:41:56 +02:00
Victor Stinner
dc9b1ea02e
Issue #12451 : distutils now opens the setup script in binary mode to read the
...
encoding cookie, instead of opening it in UTF-8.
2011-06-30 15:40:22 +02:00
Benjamin Peterson
844315c751
merge heads
2011-06-29 22:53:19 -05:00
Benjamin Peterson
609da58ae5
store the current scope on the stack right away
2011-06-29 22:52:39 -05:00
Victor Stinner
7f86811d55
Issue #12400 : test_cprofile now restores correctly the previous sys.stderr
...
Copy sys.stderr before replacing it, instead of using sys.__stderr__
2011-06-30 00:00:45 +02:00
Victor Stinner
0aafa4f1e2
faulthandler: add missing include, pthread.h, for FreeBSD 6
2011-06-29 23:28:02 +02:00
Victor Stinner
7248850bee
Issue #12400 : test_faulthandler now uses sys.__stderr__
...
instead of open(os.devnull, 'w')
2011-06-29 23:24:31 +02:00
Benjamin Peterson
c2575d55cd
remove VISIT_*_IN_BLOCK macros
...
These are pointless because on error, all blocks will be finalized by
symtable_dealloc.
2011-06-29 15:27:14 -05:00
Victor Stinner
e15bfeb8ce
(merge 3.2) Issue #12400 : regrtest.runtest() uses stream.seek(0) before .truncate()
...
.truncate(0) doesn't rewind.
2011-06-29 20:03:13 +02:00
Victor Stinner
fcc2a21fae
Issue #12400 : regrtest.runtest() uses stream.seek(0) before .truncate()
...
.truncate(0) doesn't rewind.
2011-06-29 20:01:29 +02:00
Victor Stinner
e6db1440d8
(merge 3.2) Issue #12400 : test_zipimport_support doesn't restore original
...
sys.stdout anymore
regrtest doesn't check that a test doesn't output anything anymore.
2011-06-29 18:12:33 +02:00
Victor Stinner
592f679dce
Issue #12400 : test_zipimport_support doesn't restore original sys.stdout
...
anymore
regrtest doesn't check that a test doesn't output anything anymore.
2011-06-29 18:11:36 +02:00
Victor Stinner
fa832dea2a
(merge 3.2) Issue #12400 : runtest() truncates the StringIO stream before a new
...
test
2011-06-29 17:29:22 +02:00
Victor Stinner
85b3a492d6
Issue #12400 : runtest() truncates the StringIO stream before a new test
2011-06-29 17:26:38 +02:00
Victor Stinner
68416f0ae5
(merge 3.2) Issue #12400 : Add missing import (os) to test_kqueue
2011-06-29 17:20:33 +02:00
Victor Stinner
125b2ba41e
Issue #12400 : Add missing import (os) to test_kqueue
2011-06-29 17:20:02 +02:00
Victor Stinner
05d34fc953
Issue #12400 : test.support.run_doctest() doesn't change sys.stdout anymore
...
regrtest doesn't check that tests doesn't write something to stdout anymore.
Don't replace sys.stdout by the original sys.stdout to be able to capture the
output for regrtest -W.
2011-06-29 15:53:11 +02:00
Victor Stinner
bddc4d4607
Issue #12400 : test.support.run_doctest() doesn't change sys.stdout anymore
...
regrtest doesn't check that tests doesn't write something to stdout anymore.
Don't replace sys.stdout by the original sys.stdout to be able to capture the
output for regrtest -W.
2011-06-29 15:52:46 +02:00
Victor Stinner
ba08905062
(merge 3.2) Issue #12400 : regrtest, force verbose mode to True with option -W
...
If verbose is False, the output is empty. Fix also a typo in a variable name.
2011-06-29 15:38:18 +02:00
Victor Stinner
ea95de75dd
Issue #12400 : regrtest, force verbose mode to True with option -W
...
If verbose is False, the output is empty. Fix also a typo in a variable name.
2011-06-29 15:34:48 +02:00
Victor Stinner
d71bd9a9a4
(merge 3.2) Issue #12400 : runtest() reuses the same io.StringIO instance for
...
all calls
* Don't force verbose to True with option -W
* Rename rerun_failed variable to output_on_failure
2011-06-29 15:25:40 +02:00
Victor Stinner
8313d6aef8
Issue #12400 : runtest() reuses the same io.StringIO instance for all calls
...
* Don't force verbose to True with option -W
* Rename rerun_failed variable to output_on_failure
2011-06-29 15:22:26 +02:00
Victor Stinner
7348c6bbb6
(merge 3.2) Issue #12400 : don't use sys.stderr in test_kqueue because it may be
...
replaced by a io.StringIO object by regrtest (which has no file descriptor).
2011-06-29 14:59:46 +02:00
Victor Stinner
46b2091146
Issue #12400 : don't use sys.stderr in test_kqueue because it may be replaced by
...
a io.StringIO object by regrtest (which has no file descriptor).
2011-06-29 14:59:10 +02:00
Victor Stinner
7e32f3a401
Issue #12400 : fix test_faulthandler if regrtest captures sys.stderr
...
faulthandler.enable() requires that sys.stderr has a fileno() method.
2011-06-29 13:44:05 +02:00
Victor Stinner
0b8f0c2766
(merge 3.2) Issue #12400 : remove unused import
2011-06-29 13:24:58 +02:00
Victor Stinner
bd98f9367c
Issue #12400 : remove unused variable
2011-06-29 13:24:28 +02:00
Victor Stinner
565dbadc22
Issue #12400 : oops, remove debug code...
2011-06-29 13:23:49 +02:00
Victor Stinner
e2185d714b
(merge 3.2) Issue #12400 : regrtest -W doesn't rerun the tests twice anymore,
...
but captures the output and displays it on failure instead. regrtest -v doesn't
print the error twice anymore if there is only one error.
2011-06-29 13:04:35 +02:00
Victor Stinner
a7c33e5168
Issue #12400 : regrtest -W doesn't rerun the tests twice anymore, but captures
...
the output and displays it on failure instead. regrtest -v doesn't print the
error twice anymore if there is only one error.
2011-06-29 13:00:54 +02:00
Victor Stinner
9e8b82f1e1
Issue #12303 : run sig*wait*() tests in a subprocesss
...
... instead of using fork(): sig*wait*() functions behave differently (not
correctly) after a fork, especially on FreeBSD 6.
Skip also test_sigtimedwait_poll() on FreeBSD 6 because of a kernel bug.
2011-06-29 10:43:02 +02:00