Victor Stinner
62ec61fb6a
test.support: can_symlink() removes the temporary symbolic link
2011-06-07 12:17:15 +02:00
Victor Stinner
149b1c7797
Use a sleep for test_subprocess timeout test
...
instead of an active loop (while True: pass) to limit race conditions.
2011-06-06 23:43:02 +02:00
Éric Araujo
69cdf9294f
Fix UnboundLocalError in a finally block of one packaging test
2011-06-06 22:24:19 +02:00
Éric Araujo
7373fccd50
Fix sdist to always include setup.cfg ( #11092 ), to comply with the spec
2011-06-06 21:55:43 +02:00
Éric Araujo
078368fe4d
Use strings instead of sets of lines in packaging.create tests.
...
Using sets in tests did not check whether the values were written in the right
section or with the right key.
2011-06-06 20:59:56 +02:00
Éric Araujo
de7563bd3c
Fix comment
2011-06-06 20:28:13 +02:00
Éric Araujo
9808dac192
Update comments in sysconfig.cfg
2011-06-06 20:07:04 +02:00
Charles-François Natali
368f34bb4b
Issue #12196 : Make os.pipe2() flags argument mandatory.
2011-06-06 19:49:47 +02:00
Antoine Pitrou
34b312e33d
Whitespace normalization
2011-06-06 19:36:01 +02:00
Antoine Pitrou
176f07dadf
Issue #12040 : Expose a new attribute sentinel
on instances of
...
:class:`multiprocessing.Process`. Also, fix Process.join() to not use
polling anymore, when given a timeout.
2011-06-06 19:35:31 +02:00
Antoine Pitrou
f068ab8304
Issue #11893 : Remove obsolete internal wrapper class SSLFakeFile
in the smtplib module.
...
Patch by Catalin Iacob.
2011-06-06 19:17:09 +02:00
Éric Araujo
e77535c90b
Branch merge
2011-06-06 17:12:29 +02:00
Éric Araujo
5b52f95797
Branch merge
2011-06-06 17:11:47 +02:00
Victor Stinner
883456833c
Issue #12250 : regrtest --timeout displays a warning instead of failing with an
...
error if faulthandler.dump_tracebacks_later() is missing (e.g. if Python is
compiled without threads).
2011-06-06 12:14:23 +02:00
Victor Stinner
9e586c2b35
Issue #12250 : modify "make buildbottest" command line instead of TESTOPTS
...
Add TESTTIMEOUT variable (default: 3600 seconds). Use TESTTIMEOUT=0 to disable
the timeout.
***
fix
2011-06-06 12:04:36 +02:00
Benjamin Peterson
b204a42383
greatly improve argument parsing error messages ( closes #12265 )
2011-06-05 22:04:07 -05:00
Éric Araujo
d5d831b74d
Update doctring now that Python has real booleans
2011-06-06 01:13:48 +02:00
Vinay Sajip
5056c8c718
Closes issue #11557 : removal of non-idiomatic code in test_logging.
2011-06-05 09:31:34 +01:00
Benjamin Peterson
e13e662244
merge heads
2011-06-04 22:09:08 -05:00
Benjamin Peterson
f719957d7a
only clear the parser error if it's set ( closes #12264 )
2011-06-04 22:06:42 -05:00
Éric Araujo
4559383664
Improve consistency in questions asked by packaging.create.
...
I reworded “wizard” because it is a Windows-specific term.
2011-06-04 22:37:57 +02:00
Éric Araujo
8f66f61e55
Clean up packaging.create and add TODO notes for future cleanups
2011-06-04 22:36:40 +02:00
Éric Araujo
18efecf30a
Make help messages in packaging.run more consistent
2011-06-04 22:33:59 +02:00
Éric Araujo
2ef747cb77
Cleanup in packaging: don’t unnecessarily instantiate exceptions
2011-06-04 22:33:16 +02:00
Éric Araujo
35a4d01a92
Improve a few docstrings in packaging.
...
Also beautify import lists. Having them grouped by lenght makes it slightly
easier to look for a module.
2011-06-04 22:24:59 +02:00
Éric Araujo
459b452b98
Merge ABC and distutils touch-ups from 3.2.
...
I have removed the reST target I added in 38cdca2cc253: it is not necessary, as
people can link to the glossary entry or the abc module without it.
Two indentation fixes from 3.2 collections.rst have been ported to 3.3
collections.abc.rst.
2011-06-04 21:16:42 +02:00
Éric Araujo
70798be6f6
Remove unneeded executable bit on two distutils files
2011-06-04 20:47:26 +02:00
Éric Araujo
b4ef8f299f
Branch merge
2011-06-04 20:37:16 +02:00
Mark Dickinson
7ce0fa8775
Issue #12080 : Fix a performance issue in Decimal._power_exact that causes some corner-case Decimal.__pow__ calls to take an unreasonably long time.
2011-06-04 18:14:23 +01:00
Éric Araujo
088025fc5b
Use list constructor or built-in method instead of copy module
2011-06-04 18:45:40 +02:00
Victor Stinner
ab5fcc00a7
(Merge 3.2) Issue #12016 : Add test_errorhandle() to TestBase_Mapping of
...
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.
2011-06-03 23:45:03 +02:00
Victor Stinner
f5048a4075
Issue #12016 : Add test_errorhandle() to TestBase_Mapping of
...
test_multibytecodec_support. Improve also error message of the
test_errorhandle() of TestBase.
2011-06-03 23:44:39 +02:00
Éric Araujo
5d5bde1df2
Document autoflushing in packaging.test.support.LoggingCatcher.get_logs.
...
I’m afraid my docstring is not as clear as it should be, but I can’t
find a concise way of describing what the code does. Suggestions for
improvements welcome.
2011-06-03 17:28:23 +02:00
Charles-François Natali
3ca4db881f
Merge.
2011-06-03 12:57:49 +02:00
Charles-François Natali
239bb96540
Issue #12196 : Make test.support's requires_linux_version a decorator.
2011-06-03 12:55:15 +02:00
Victor Stinner
301968874b
Close #12250 : Disable the regrtest timeout by default
...
Keep a timeout of 1 hour for buildbots.
2011-06-03 12:53:26 +02:00
Raymond Hettinger
22cc1183a3
merge
2011-06-02 23:49:44 -07:00
Raymond Hettinger
3d89057ff8
Fix named tuples to work with vars().
2011-06-02 23:40:24 -07:00
Éric Araujo
acf71b89ff
Merge packaging doc fix
2011-06-02 16:43:25 +02:00
Éric Araujo
8c86ecdab5
Fix format of warnings from the packaging check command
2011-06-02 14:54:44 +02:00
Éric Araujo
78af7d8392
Make packaging.tests.support.LoggingCatcher.get_logs flush the log handler.
...
This removes the need to call flush manually in each test, except when
testing code that creates warning without checking them.
2011-06-02 14:53:59 +02:00
Tarek Ziade
721ccd0ce1
added the generate-setup action
2011-06-02 12:00:44 +02:00
Éric Araujo
98b6592266
Branch merge
2011-06-01 19:47:06 +02:00
Éric Araujo
25987d0c4b
The compiler class for EMX was removed
2011-06-01 15:20:44 +02:00
Éric Araujo
25d5737f15
Fix typos in class names
2011-06-01 14:41:11 +02:00
Victor Stinner
301f3f093c
test_faulthandler: use a longer sleep (2.5 sec instead of 1.3 sec) in
...
_check_dump_tracebacks_later() to avoid failures if the system is slow.
2011-06-01 13:49:12 +02:00
Victor Stinner
ebbbdafd87
(Merge 3.2) Close #12230 : Mac OS X Tiger (10.4) has a kernel bug: sometimes,
...
the file descriptor of a pipe closed in the parent process is valid in the
child process according to fstat(), but the mode of the file descriptor is
invalid, and read or write raise an error.
test.support.requires_mac_ver() is now a decorator, as suggested by Ezio
Melotti, and its docstring is fixed (linux_version => mac_ver).
2011-06-01 13:19:07 +02:00
Victor Stinner
88701e27e9
Close #12230 : Mac OS X Tiger (10.4) has a kernel bug: sometimes, the file
...
descriptor of a pipe closed in the parent process is valid in the child process
according to fstat(), but the mode of the file descriptor is invalid, and read
or write raise an error.
Add also requires_mac_ver() decorator to test.support.
2011-06-01 13:13:04 +02:00
Victor Stinner
fce9233e93
test.support: add requires_mac_ver() function
...
Add also linux_version() to __all__.
2011-06-01 12:28:04 +02:00
Benjamin Peterson
8c6f88efa2
remove __version__s dependent on subversion keyword expansion ( closes #12221 )
2011-05-31 20:52:17 -05:00
Victor Stinner
1b5b9d7434
(Merge 3.2) Close #12085 : Fix an attribute error in subprocess.Popen destructor
...
if the constructor has failed, e.g. because of an undeclared keyword argument.
Patch written by Oleg Oshmyan.
2011-06-01 00:58:57 +02:00
Victor Stinner
87b9bc3893
Close #12085 : Fix an attribute error in subprocess.Popen destructor if the
...
constructor has failed, e.g. because of an undeclared keyword argument. Patch
written by Oleg Oshmyan.
2011-06-01 00:57:47 +02:00
Éric Araujo
1256a6864e
Re-add line that was mistakenly removed alongside RPM support.
...
This reveals the need for bdist* tests.
2011-05-31 22:38:41 +02:00
Victor Stinner
2082268025
Issue #8407 : test_signal doesn't check signal delivery order
...
Tthe signal delivery order is not portable or reliable.
2011-05-31 22:31:09 +02:00
Éric Araujo
9deedf696e
Re-apply distutils2 changes lost before the merge of packaging.
...
wrap_text was removed in favor of standard textwrap but the removal of the
function was lost in a bad merge; a change in sdist mysteriously disappeared.
2011-05-31 18:04:32 +02:00
Éric Araujo
a94bdee2e4
Fix nonsensical name.
...
The code used “long” to refer to a long option (e.g. --quiet), which was
probably changed by 2to3 and not caught by the human operator, and then
changed to “integer” by me to avoid shadowing without seeing the real
obvious fix.
2011-05-31 15:05:38 +02:00
Éric Araujo
b4fefc8fa2
Fix test name in debug message
2011-05-31 14:33:32 +02:00
Tarek Ziade
e2655974cf
code cleanup in packaging.run
2011-05-31 12:15:42 +02:00
Tarek Ziade
5a5ce388ed
make sure we check for write access before starting the install, and add correct exit code
2011-05-31 12:09:34 +02:00
Nick Coghlan
62ecb6aa0a
Tidy up the additional string module tests added at the Pycon sprints ( closes #11505 )
2011-05-31 19:40:11 +10:00
Tarek Ziade
441531f6e6
improved pysetup list UI
2011-05-31 09:18:24 +02:00
Benjamin Peterson
cccfd9932d
merge heads
2011-05-30 19:25:43 -05:00
Benjamin Peterson
15ac311088
add tests for negative with conjugate
2011-05-30 19:22:53 -05:00
Victor Stinner
1eb6d278a8
(Merge 3.2) Issue #12057 : Add tests for ISO 2022 codecs
...
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-31 00:03:07 +02:00
Victor Stinner
ee49797c8d
Issue #12057 : Add tests for ISO 2022 codecs
...
iso2022_jp, iso2022_jp_2 and iso2022_kr
2011-05-31 00:01:24 +02:00
Tarek Ziade
f47fa58b62
better UI when the user does not have the perms to remove the project
2011-05-30 23:26:51 +02:00
Victor Stinner
2a12974bca
Close #12028 : Make threading._get_ident() public, rename it to
...
threading.get_ident() and document it. This function was used by
_thread.get_ident().
2011-05-30 23:02:52 +02:00
Victor Stinner
d976098e3b
Close #12089 : Remove outdated and unused code from regrtest.
2011-05-30 22:58:13 +02:00
Victor Stinner
e15dce3d18
Close #12171 : IncrementalEncoder.reset() of CJK codecs (multibytecodec) calls
...
encreset() instead of decreset().
2011-05-30 22:56:00 +02:00
Tarek Ziade
1cc9bbd751
fixed the test_uninstall patch
2011-05-30 19:16:49 +02:00
Tarek Ziade
371df05740
Issue 12218: Removing wsgiref.egg-info
2011-05-30 18:55:32 +02:00
Benjamin Peterson
c6c5e04611
merge heads
2011-05-30 11:15:05 -05:00
Benjamin Peterson
758888d437
don't restrict unexpected EOF errors to the first line ( closes #12216 )
2011-05-30 11:12:38 -05:00
Benjamin Peterson
c8507bfe9c
use better naming scheme
2011-05-30 10:52:48 -05:00
Brian Quinlan
1ae2998f3e
Increases some test timeouts to fix issue 11864.
2011-05-30 21:52:24 +10:00
Tarek Ziade
b9c09878ab
displaying the faulty project name is a good idea
2011-05-30 12:25:38 +02:00
Tarek Ziade
2da756592b
removed spurious output
2011-05-30 12:25:21 +02:00
Tarek Ziade
b1b6e1384c
Cleaned up the installer output behavior.
...
This change also makes sure the logger handlers are not alterated after an
installation. That also fixes the remaining environment alteration issue in
test_packaging.
2011-05-30 12:07:49 +02:00
Tarek Ziade
43f289ad88
cleanup packaging.database
2011-05-30 11:07:54 +02:00
Tarek Ziade
a17d8883fd
a resource module for 2 functions is overkill. database is the right place for those
2011-05-30 10:57:44 +02:00
Nadeem Vawda
72e58651b2
Simplify line-oriented tests in test_bz2.
2011-05-30 02:09:54 +02:00
Nadeem Vawda
f3ecb83822
Issue #1625 : Add stream ordering test to test_bz2.
2011-05-30 01:58:12 +02:00
Nadeem Vawda
07d291ae59
Remove unused data from test_bz2.
...
DATA_CRLF was used to test BZ2File's universal newline logic, which was removed
in changeset ce63a5dcb0af. The tests themselves were removed in fbabdb0d7dd2.
2011-05-30 01:44:45 +02:00
Nadeem Vawda
98838bac9c
Miscellaneous cleanups to bz2 and test_bz2 following issue #1625 .
...
* In bz2.decompress(), concatenate partial results in a way that should
be more friendly to other Python implementations
* Remove redundant comments in test_bz2
* Use 'while True:' instead of 'while 1:'
2011-05-30 01:12:24 +02:00
Ned Deily
65bf417fe1
Issue #10736 : Revert changeset de4d34a95603 as it causes failures with
...
old Apple-supplied Carbon Tk 8.4.
2011-05-29 15:39:11 -07:00
Ned Deily
d8e08067b9
Issue #10736 : Fix test_ttk test_widgets failures with Cocoa Tk 8.5.9
...
on Mac OS X. (Patch by Ronald Oussoren)
2011-05-29 15:28:54 -07:00
Benjamin Peterson
5f250fbafe
update pydoc-topics
2011-05-29 16:09:08 -05:00
Benjamin Peterson
9a63745273
bump to 3.1.4rc1
2011-05-29 16:06:00 -05:00
Charles-François Natali
d92ccb1f75
Skip test_pipe2 on Linux kernels older than 2.6.27.
2011-05-29 20:46:27 +02:00
Charles-François Natali
daafdd5bea
Issue #12196 : Add pipe2() to the os module.
2011-05-29 20:07:40 +02:00
Benjamin Peterson
43af12b0b4
unify TryExcept and TryFinally ( closes #12199 )
2011-05-29 11:43:10 -05:00
Éric Araujo
c739066914
Branch merge
2011-05-29 18:08:34 +02:00
Éric Araujo
4b8f6651f0
Branch merge
2011-05-29 18:05:53 +02:00
Éric Araujo
e4427bf9c9
Branch merge
2011-05-29 17:56:20 +02:00
Charles-François Natali
2d51721832
Issue #12196 : Add PIPE_MAX_SIZE to test.support, constant larger than the
...
underlying OS pipe buffer size.
2011-05-29 16:36:44 +02:00
Éric Araujo
7f9b37be45
Port r86353 to packaging ( #10359 : “;” after function definition is invalid in ISO C)
2011-05-29 02:59:52 +02:00
Éric Araujo
601aba6f15
Merge touch-ups and fixes for #9831 (+port fix to packaging) and #9223 from 3.2
2011-05-29 00:56:39 +02:00
Éric Araujo
c5069e0070
Merge doc touch-ups and fixes for #9831 and #9223 from 3.1
2011-05-29 00:29:56 +02:00
Éric Araujo
489c8ff26b
Fix test_build_py when sys.dont_write_bytecode is true ( #9831 ).
...
The tests now pass all combinations of -O/-OO and -B. See also #7071
and #6292 for previous variations on the same theme.
test_versionpredicate needs a skip when sys.flags.optimize is true, but
I don’t know how to make that work with a DocTestSuite.
2011-05-28 23:32:50 +02:00
Gregory P. Smith
8281ba8bcb
follow on to the last commit, remove the final POSIXPurePythonTestCase
...
reference. (the difference between running test_subprocess.py
directly rather than via regrtest.py)
2011-05-28 10:00:14 -07:00
Gregory P. Smith
59fd1bfcc1
The _posixsubprocess module is now required on POSIX.
...
Remove the pure Python POSIX subprocess implementation.
If non-CPython VMs (are there any for 3.x yet?) were somehow depending
on this, they already have the exact same set of problems with Python
code being executed after os.fork() that _posixsubprocess was written
to deal with. They should implement an equivalent outside of Python.
2011-05-28 09:32:39 -07:00
Gregory P. Smith
7439e7b7ce
Fix ProcessTestCasePOSIXPurePython to test the module from import when
...
_posixsubprocess doesn't exist rather than simply stubbing it out
after the fact. This adds coverage for the RuntimeWarning as well as
using the pure python _create_pipe instead of using
_posixsubprocess.cloexec_pipe unintentionally with the pure python
code.
Ironically: I don't think any platform should ever actually _use_ the
pure Python subprocess code on POSIX platforms anymore. This at least
tests it properly in this stable branch. The pure python code for
this is likely to be removed in 3.3.
2011-05-28 09:06:02 -07:00
Gregory P. Smith
c80504fb69
Fix ProcessTestCasePOSIXPurePython to test the module from import when
...
_posixsubprocess doesn't exist rather than simply stubbing it out
after the fact. This adds coverage for the RuntimeWarning as well as
using the pure python _create_pipe instead of using
_posixsubprocess.cloexec_pipe unintentionally with the pure python
code.
Ironically: I don't think any platform should ever actually _use_ the
pure Python subprocess code on POSIX platforms anymore. This at least
tests it properly in this stable branch. The pure python code for
this is likely to be removed in 3.3.
2011-05-28 09:06:02 -07:00
Ned Deily
59a333844a
Issue #985064 : Make plistlib more resilient to faulty input plists.
...
Patch by Mher Movsisyan.
2011-05-28 03:09:33 -07:00
Ned Deily
32b5cb0a66
Issue #985064 : Make plistlib more resilient to faulty input plists.
...
Patch by Mher Movsisyan.
2011-05-28 03:02:30 -07:00
Ned Deily
b8e59f77e6
Issue #985064 : Make plistlib more resilient to faulty input plists.
...
Patch by Mher Movsisyan.
2011-05-28 02:19:19 -07:00
Ned Deily
61be422bd7
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:45:52 -07:00
Ned Deily
056f5b9dad
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:36:12 -07:00
Ned Deily
9a7c524dc6
Issue #9670 : Increase the default stack size for secondary threads on
...
Mac OS X and FreeBSD to reduce the chances of a crash instead of a
"maximum recursion depth" RuntimeError exception.
(patch by Ronald Oussoren)
2011-05-28 00:19:56 -07:00
Benjamin Peterson
aeabd5f29c
add some with syntax examples
2011-05-27 15:02:03 -05:00
Victor Stinner
0501070669
Revert my commit 3555cf6f9c98: "Issue #8796 : codecs.open() calls the builtin
...
open() function instead of using StreamReaderWriter. Deprecate StreamReader,
StreamWriter, StreamReaderWriter, StreamRecoder and EncodedFile() of the codec
module. Use the builtin open() function or io.TextIOWrapper instead."
"It has not been approved !" wrote Marc-Andre Lemburg.
2011-05-27 16:50:40 +02:00
Benjamin Peterson
43b068648e
try to use the same str object for all code filenames when compiling or unmarshalling ( #12190 )
...
This should reduce memory usage.
2011-05-27 09:08:01 -05:00
Nadeem Vawda
4e18ac850f
Merge heads
2011-05-27 02:03:06 +02:00
Nadeem Vawda
55b4338874
Issue #1625 : BZ2File and bz2.decompress() now support multi-stream files.
...
Initial patch by Nir Aides.
2011-05-27 01:52:15 +02:00
Victor Stinner
98fe1a0c3b
Issue #8796 : codecs.open() calls the builtin open() function instead of using
...
StreamReaderWriter. Deprecate StreamReader, StreamWriter, StreamReaderWriter,
StreamRecoder and EncodedFile() of the codec module. Use the builtin open()
function or io.TextIOWrapper instead.
2011-05-27 01:51:18 +02:00
Éric Araujo
d4ae04fdb8
Branch merge
2011-05-26 16:50:19 +02:00
Éric Araujo
dec2067b2a
Branch merge
2011-05-26 16:49:59 +02:00
Éric Araujo
f46676d48f
Branch merge
2011-05-26 16:35:14 +02:00
Victor Stinner
b57f108b03
Issue #12175 : BufferedReader.read(-1) now calls raw.readall() if available.
2011-05-26 00:19:38 +02:00
Tarek Ziade
5eb555990a
Issue #12180 : Fixed a few remaining errors in test_packaging when no threading.
2011-05-25 23:46:09 +02:00
Victor Stinner
d2780aedce
(Merge 3.2) Issue #12175 : RawIOBase.readall() now returns None if read()
...
returns None.
2011-05-25 22:51:16 +02:00
Victor Stinner
988512cfd7
(Merge 3.1) Issue #12175 : RawIOBase.readall() now returns None if read()
...
returns None.
2011-05-25 22:49:15 +02:00
Victor Stinner
a80987f20d
Issue #12175 : RawIOBase.readall() now returns None if read() returns None.
2011-05-25 22:47:16 +02:00
Victor Stinner
af62c7d3de
(Merge 3.2) Issue #12175 : FileIO.readall() now raises a ValueError instead of
...
an IOError if the file is closed.
2011-05-25 22:13:47 +02:00
Victor Stinner
4767114e77
(Merge 3.1) Issue #12175 : FileIO.readall() now raises a ValueError instead of
...
an IOError if the file is closed.
2011-05-25 22:11:55 +02:00
Victor Stinner
b79f28ccbd
Issue #12175 : FileIO.readall() now raises a ValueError instead of an IOError if
...
the file is closed.
2011-05-25 22:09:03 +02:00
Senthil Kumaran
242926d227
merge commit.
2011-05-26 00:26:32 +08:00
Senthil Kumaran
5e826e8a1b
Fix closes issue #11109 - socketserver.ForkingMixIn leaves zombies, also fails to reap all zombies in one pass.
...
A new method called service_action is made available in BaseServer, called by
serve_forever loop. This useful in cases where Mixins can use it for cleanup
action. ForkingMixin class uses service_action to collect the zombie child
processes. Initial Patch by Justin Wark.
2011-05-26 00:22:59 +08:00
Éric Araujo
aa1ef2d735
Merge 3.2
2011-05-25 18:22:26 +02:00
Éric Araujo
559b5f1ca0
Minor cleanup in sysconfig.
...
Also remove outdated and unhelpful docstrings in test_sysconfig.
2011-05-25 18:21:43 +02:00
Antoine Pitrou
b46004c94f
Issue #12045 : Avoid duplicate execution of command in ctypes.util._get_soname().
...
Patch by Sijin Joseph.
2011-05-25 18:17:25 +02:00
Éric Araujo
51b7aedadd
Merge 3.1
2011-05-25 18:13:49 +02:00
Éric Araujo
29ef0064de
Branch merge
2011-05-25 18:12:22 +02:00
Benjamin Peterson
dac9acedfd
test that object has a __dir__() implementation
2011-05-25 09:33:37 -05:00
Benjamin Peterson
81b21d7766
test values and types of (True/False).(imag/real)
2011-05-25 09:21:46 -05:00
Victor Stinner
2e2baa9208
Issue #12049 : test_ssl now checks also that RAND_bytes() raises an error if
...
there is not enough entropy.
2011-05-25 11:15:16 +02:00
Victor Stinner
c13ef66649
Issue #8407 : Fix the signal handler of the signal module: if it is called
...
twice, it now writes the number of the second signal into the wakeup fd.
2011-05-25 02:35:58 +02:00
Benjamin Peterson
b45c7087aa
excellent place for assertRaises
2011-05-24 19:31:01 -05:00
Victor Stinner
be6210363e
Issue #8533 : regrtest replaces also sys.stdout on Windows
...
Replace sys.stdout to use backslashreplace. Use '\n' newline on all operating
systems.
2011-05-25 02:01:55 +02:00
Victor Stinner
6daa33c8ac
Issue #10818 : Remove deprecated pydoc.serve() function
...
The pydoc module has a new enhanced web server.
2011-05-25 01:41:22 +02:00
Victor Stinner
383c3fc6b4
Issue #10818 : Remove the Tk GUI of the pydoc module (pydoc -g has been
...
deprecated in Python 3.2).
2011-05-25 01:35:05 +02:00
Nadeem Vawda
f1a1af21eb
Fix typo in bz2 module.
2011-05-25 00:32:08 +02:00
Victor Stinner
62666e1db1
(Merge 3.2) Issue #12057 : Add tests for the HZ encoding
2011-05-25 00:17:13 +02:00
Victor Stinner
8ed8416c2b
(Merge 3.1) Issue #12057 : Add tests for the HZ encoding
2011-05-25 00:16:43 +02:00
Victor Stinner
8fdfc20fc4
Issue #12057 : Add tests for the HZ encoding
2011-05-25 00:06:51 +02:00
Charles-François Natali
1f4560c872
Issue #1441530 : In imaplib, read the data in one chunk to speed up large
...
reads and simplify code.
2011-05-24 23:47:49 +02:00
Victor Stinner
17dc81951a
(Merge 3.2) Issue #12070 : Fix the Makefile parser of the sysconfig module to
...
handle correctly references to "bogus variable" (e.g. "prefix=$/opt/python").
2011-05-24 23:38:03 +02:00
Victor Stinner
1273b7cd9c
Issue #12070 : Fix the Makefile parser of the sysconfig module to handle
...
correctly references to "bogus variable" (e.g. "prefix=$/opt/python").
2011-05-24 23:37:07 +02:00
Victor Stinner
eb734f77ad
(Merge 3.2) Issue #12100 : Don't reset incremental encoders of CJK codecs at
...
each call to their encode() method anymore, but continue to call the reset()
method if the final argument is True.
2011-05-24 22:24:11 +02:00
Victor Stinner
d48ba0bde5
(Merge 3.1) Issue #12100 : Don't reset incremental encoders of CJK codecs at
...
each call to their encode() method anymore, but continue to call the reset()
method if the final argument is True.
2011-05-24 22:22:17 +02:00
Victor Stinner
6bcbef7da0
Issue #12100 : Don't reset incremental encoders of CJK codecs at each call to
...
their encode() method anymore, but continue to call the reset() method if the
final argument is True.
2011-05-24 22:17:55 +02:00
Benjamin Peterson
abf22b405f
merge 3.2
2011-05-24 12:51:32 -05:00
Benjamin Peterson
e6a06217d2
merge 3.1
2011-05-24 12:51:24 -05:00
Benjamin Peterson
f847393308
backout 8b384de4e780, so a proper fix can be considered ( #5715 )
2011-05-24 12:50:34 -05:00
Benjamin Peterson
9b325b0ace
merge 3.2
2011-05-24 12:09:47 -05:00
Benjamin Peterson
48e21fc46f
merge 3.1
2011-05-24 12:09:26 -05:00
Benjamin Peterson
a7cdb0f218
generally, sockets should be closed after they're used
2011-05-24 12:06:31 -05:00
Charles-François Natali
247b52bdec
Issue #5715 : In socketserver, close the server socket in the child process.
2011-05-24 18:29:46 +02:00
Charles-François Natali
cf057597e6
Issue #5715 : In socketserver, close the server socket in the child process.
2011-05-24 18:27:25 +02:00
Charles-François Natali
7b54e7562d
Issue #5715 : In socketserver, close the server socket in the child process.
2011-05-24 18:23:15 +02:00
Benjamin Peterson
82b00c1d30
move specialized dir implementations into __dir__ methods ( closes #12166 )
2011-05-24 11:09:06 -05:00
Victor Stinner
9bcfacd4fc
Issue #12167 : packaging.tests.test_dist unloads the temporary module
...
Fix a reference leak.
2011-05-24 14:01:39 +02:00
Victor Stinner
79d1b1ce3f
Issue #12167 : packaging.tests.support, LoggingCatcher restores correctly the
...
log level. Avoid also calls to .addCleanup() in setUp().
2011-05-24 13:59:21 +02:00
Victor Stinner
99c8b16143
Issue #12049 : Add RAND_bytes() and RAND_pseudo_bytes() functions to the ssl
...
module.
2011-05-24 12:05:19 +02:00
Vinay Sajip
b7b1930fe3
Updated test_rollover delay to just over a second.
2011-05-24 07:12:41 +01:00
Victor Stinner
e36f37525b
Issue #12105 : test_posix skips test_oscloexec() on Linux < 2.6.23
2011-05-24 00:29:43 +02:00
Victor Stinner
fea0f4d517
Issue #12158 : Move linux_version() from test_socket to test.support
2011-05-24 00:24:19 +02:00
Victor Stinner
25000d4d31
Issue #11377 : platform.popen() emits a DeprecationWarning
2011-05-24 00:16:16 +02:00
Ezio Melotti
a9100721e9
Merge heads.
2011-05-24 01:03:33 +03:00
Ezio Melotti
64af7c0d36
#12074 : merge with 3.2.
2011-05-24 01:01:08 +03:00
Vinay Sajip
3ef1229b14
Issue #12151 : Test now ignores datagram socket errors after server is closed.
2011-05-23 23:00:42 +01:00
Ezio Melotti
84f75c680c
#12074 : remove the /0 when there are no failures.
2011-05-24 01:00:10 +03:00
Benjamin Peterson
bfcdcf9282
merge heads
2011-05-23 16:30:29 -05:00
Benjamin Peterson
200fe3d747
merge heads
2011-05-23 16:29:50 -05:00
Benjamin Peterson
5cc10b0009
merge 3.2
2011-05-23 16:27:36 -05:00
Benjamin Peterson
f5fcd33be9
merge 3.1
2011-05-23 16:22:42 -05:00
Victor Stinner
08c719eb95
(Merge 3.2) Issue #12074 : regrtest displays also the current number of failures
2011-05-23 23:16:09 +02:00
Victor Stinner
a2a895c46c
Issue #12074 : regrtest displays also the current number of failures
2011-05-23 23:14:05 +02:00
Benjamin Peterson
7963a35b41
correctly lookup __dir__
2011-05-23 16:11:05 -05:00
Vinay Sajip
acd902be64
Issue #12151 : Correction to diagnostic code.
2011-05-23 21:49:09 +01:00
Vinay Sajip
ba980db797
Issue #12151 : Added diagnostics to help diagnose intermittent socket errors.
2011-05-23 21:37:54 +01:00
Tarek Ziade
e1177d9d17
Issue #12125 : fixed the failures under Solaris due to improper test cleanup.
2011-05-23 19:07:56 +02:00
Tarek Ziade
fabc30833f
fixed the cwd cleanup in packaging test_util
2011-05-23 18:47:27 +02:00
Tarek Ziade
eb64b61bf5
make sure the cwd is restored on tearDown
2011-05-23 18:31:20 +02:00
Tarek Ziade
a1ae533ac9
make sure build_dir.build_lib is synced to the faked build location
2011-05-23 17:35:20 +02:00
Victor Stinner
d6881701fb
Merge 3.2
2011-05-23 14:58:07 +02:00
Victor Stinner
b43dd4b8ca
Merge 3.1
2011-05-23 14:57:05 +02:00
Victor Stinner
2cca057284
test_codecs now removes the temporay file (created by the test)
2011-05-23 14:51:42 +02:00
Victor Stinner
cc6491a0fa
Issue #12105 : test_posix, add the value of O_CLOEXEC in the error message
2011-05-23 12:54:52 +02:00
Gregory P. Smith
a454ef6985
Update documentation to mention bytes instead byte string and correct one
...
mentioned string to the accurate description of what type is required.
2011-05-22 22:29:49 -07:00
Victor Stinner
949c890e48
Issue #12151 : test_logging writes debug messages to stderr, not stdout
...
stdout are lost in buildbots
2011-05-23 01:16:44 +02:00
Tarek Ziade
e5f9cbdaae
skip more tests in packaging if threading is not supported
2011-05-23 00:41:27 +02:00
Tarek Ziade
a3c1545a2e
not using a server name anymore as the 127.0.0.1 <> localhost symmetry is not true under Windows 7
2011-05-22 23:25:48 +02:00
Victor Stinner
3c8d12d6b8
Issue #10801 : Remove a debug print() from test_zipfile
2011-05-22 22:12:27 +02:00
Tarek Ziade
3517369894
Issue 12132 - skip the test_buil_ext test if the xx module is not found
2011-05-22 22:09:55 +02:00
Tarek Ziade
2bc55e482e
Issue 10126 - backported distutils fix for the enable-share mode into packaging
2011-05-22 21:21:44 +02:00
Charles-François Natali
1e045b1831
Issue #12105 : Add O_CLOEXEC to the os module.
2011-05-22 20:42:32 +02:00
Antoine Pitrou
f738d33e5d
Issue #12138 : fix use of transient_internet() in test_urllibnet
2011-05-22 17:35:48 +02:00
Antoine Pitrou
a98d26a500
Issue #12138 : fix use of transient_internet() in test_urllibnet
2011-05-22 17:35:17 +02:00
Victor Stinner
3c18f259ee
regrtest: enable faulthandler in main() instead of if __name__ == '__main__':
...
So it's also enabled when using "./python -m test".
2011-05-22 15:27:14 +02:00