Serhiy Storchaka
a3cf1aa864
Merge heads
2013-10-17 12:48:32 +03:00
Serhiy Storchaka
b5f8a5e134
Issue 19276: Fix tests for wave files on big-endian platforms.
...
Skip tests for 24-bit wave file on big-endian platforms.
2013-10-17 12:46:53 +03:00
Serhiy Storchaka
c955291a05
Issue 19276: Fix tests for wave files on big-endian platforms.
...
Skip tests for 24-bit wave file on big-endian platforms.
2013-10-17 12:46:00 +03:00
Richard Oudkerk
d44500affe
Try to print a backtrace of wedged child process in test.
2013-10-17 10:38:37 +01:00
R David Murray
3da240fd01
#18891 : Complete new provisional email API.
...
This adds EmailMessage and, MIMEPart subclasses of Message
with new API methods, and a ContentManager class used by
the new methods. Also a new policy setting, content_manager.
Patch was reviewed by Stephen J. Turnbull and Serhiy Storchaka,
and reflects their feedback.
I will ideally add some examples of using the new API to the
documentation before the final release.
2013-10-16 22:48:40 -04:00
Ethan Furman
1a16288197
Close #19252 : better test coverage for Enum. Thanks, CliffM
2013-10-16 19:09:31 -07:00
Richard Oudkerk
b1694cf588
Issue #18999 : Make multiprocessing use context objects.
...
This allows different parts of a program to use different methods for
starting processes without interfering with each other.
2013-10-16 16:41:56 +01:00
Serhiy Storchaka
25324971fb
Issue #18468 : The re.split, re.findall, and re.sub functions and the group()
...
and groups() methods of match object now always return a string or a bytes
object.
2013-10-16 12:46:28 +03:00
Antoine Pitrou
355dda8d17
Issue #14407 : Fix unittest test discovery in test_concurrent_futures.
2013-10-15 23:24:44 +02:00
Antoine Pitrou
9816a1e643
Issue #14407 : Fix unittest test discovery in test_concurrent_futures.
2013-10-15 23:23:32 +02:00
Serhiy Storchaka
acc9f3fb16
Issue #18725 : The textwrap module now supports truncating multiline text.
2013-10-15 21:22:54 +03:00
Richard Oudkerk
bc2bfa6b68
Merge
2013-10-15 16:49:59 +01:00
Richard Oudkerk
b46fe79735
Print process instead of pid.
2013-10-15 16:48:51 +01:00
Serhiy Storchaka
481c6dd79f
Issue #18919 : Fixed resource leaks in audio tests.
2013-10-14 20:10:18 +03:00
Serhiy Storchaka
85812bca21
Issue #18919 : Fixed resource leaks in audio tests.
2013-10-14 20:09:47 +03:00
Serhiy Storchaka
1f56a94a9e
Issue #18919 : Check warnings messages in the aifc module tests.
2013-10-14 20:06:04 +03:00
Serhiy Storchaka
4606d36d7f
Issue #18919 : Check warnings messages in the aifc module tests.
2013-10-14 20:05:33 +03:00
Antoine Pitrou
6039db8de3
Issue #18776 : atexit callbacks now display their full traceback when they raise an exception.
2013-10-13 21:54:15 +02:00
Antoine Pitrou
24201d497c
Issue #18776 : atexit callbacks now display their full traceback when they raise an exception.
2013-10-13 21:53:13 +02:00
Georg Brandl
fbc3c3c2be
Closes #17730 : in code.interact(), when banner="", do not print anything.
...
Also adds tests for banner printing.
2013-10-13 21:49:06 +02:00
Georg Brandl
6e22055ee1
pdb: modernize find_function() and add tests for it.
...
Closes #18714 .
2013-10-13 20:51:47 +02:00
Ethan Furman
9efcb6bf38
Issue19030: commit tests for DynamicClassAttribute
2013-10-13 10:52:10 -07:00
Serhiy Storchaka
eb7414fc29
Issue #18919 : Unified and extended tests for audio modules: aifc, sunau and
...
wave.
2013-10-13 18:06:45 +03:00
Serhiy Storchaka
1b80e63d70
Issue #18919 : Unified and extended tests for audio modules: aifc, sunau and
...
wave.
2013-10-13 17:55:07 +03:00
Mark Dickinson
ed7bb488b4
Remove failing checks for explicit error messages.
2013-10-13 11:34:01 +01:00
Mark Dickinson
ef8627b3f0
Issue #18659 : fix test_format test that wasn't being executed. Thanks Vajrasky Kok for the patch.
2013-10-13 11:04:36 +01:00
Georg Brandl
daa1fa991c
Back out accidentally pushed changeset b51218966201.
2013-10-13 09:32:59 +02:00
Georg Brandl
4300019e1a
Add re.fullmatch() function and regex.fullmatch() method, which anchor the
...
pattern at both ends of the string to match.
Patch by Matthew Barnett.
Closes #16203 .
2013-10-13 09:18:45 +02:00
Christian Heimes
06239f62b0
merge
2013-10-13 02:22:10 +02:00
Christian Heimes
f1dc3ee16d
Issue #19218 : Rename collections.abc to _collections_abc in order to speed up interpreter start
2013-10-13 02:04:20 +02:00
Richard Oudkerk
7b4a36194a
Merge.
2013-10-13 00:52:21 +01:00
Richard Oudkerk
4f35079858
Make test_terminate() succeed or fail quickly.
...
This does not fix #19227 , but should stop the Gentoo buildbot from hanging.
2013-10-13 00:49:27 +01:00
Christian Heimes
e92ef13b0a
Issue #18582 : Add 'pbkdf2_hmac' to the hashlib module.
2013-10-13 00:52:43 +02:00
Antoine Pitrou
1164dfcb86
Issue #19219 : Speed up marshal.loads(), and make pyc files slightly (5% to 10%) smaller.
2013-10-12 22:25:39 +02:00
Christian Heimes
f403f50378
Issue #19205 : _osx_support uses the re module all over the place. Omit the test for nw.
2013-10-12 15:08:42 +02:00
Victor Stinner
e8785ff82a
Close #18754 : Run Python child processes in isolated more in the test suite.
2013-10-12 14:44:01 +02:00
Christian Heimes
179a3dbc9e
Issue #19205 : add debugging output for failing test on Snow Leopard
2013-10-12 12:32:21 +02:00
Christian Heimes
cbf6e95de5
merge
2013-10-12 01:41:49 +02:00
Christian Heimes
c1df2729ea
Issue #19209 : fix structseq test
2013-10-12 01:38:52 +02:00
Victor Stinner
370cb25307
test_os: report tests as skipped when os.statvfs() fails with ENOSYS
2013-10-12 01:33:54 +02:00
Christian Heimes
2582762b1b
Issue #19209 : Remove import of copyreg from the os module to speed up
...
interpreter startup. stat_result and statvfs_result are now hard-coded to
reside in the os module.
The patch is based on Victor Stinner's patch.
2013-10-12 01:27:08 +02:00
Christian Heimes
1a5fb4e3c1
Also test that the locale module isn't loaded during normal startup
2013-10-12 01:00:51 +02:00
Christian Heimes
8c9cd5a3d4
Issue #19205 : Don't import the 're' module in site and sysconfig module to
...
to speed up interpreter start.
2013-10-12 00:24:55 +02:00
Antoine Pitrou
fd4722cacf
Issue #9548 : Add a minimal "_bootlocale" module that is imported by the _io module instead of the full locale module.
2013-10-12 00:13:50 +02:00
Antoine Pitrou
73abc527eb
Fix expected checksum for new unicodedata (after full rebuild)
2013-10-11 21:40:55 +02:00
R David Murray
aaf17b33a5
#19192 : Give up on time.xmlrpc.com as an xmlrpc network test.
...
time.xmlrpc.com has come and gone over the years, and has been gone again for
a while. The test did test one thing that the current xmlrpc tests don't: the
use of multiple levels of attribute names in the call. So in addition to
removing the network test, we add a test in xmlrpc of dotted name access.
There should also be a test for when dotted name access is disallowed, but
that requires more extensive test harness refactoring, and in any case was not
tested by the network test we are deleting, since it is a server-side setting.
This is a slightly simplified version of a patch by Vajrasky Kok.
2013-10-11 12:09:51 -04:00
Raymond Hettinger
1254b407ac
Rename contextlib.ignored() to contextlib.ignore().
2013-10-10 22:39:39 -07:00
Benjamin Peterson
94d08d908b
upgrade unicode db to 6.3.0 ( closes #19221 )
2013-10-10 17:24:45 -04:00
R David Murray
78d692f98e
18764: remove the problematic 'print' alias for the PDB 'p' command.
...
So that it no longer shadows the print function.
Patch by Connor Osborn, doc and test changes by R. David Murray.
2013-10-10 17:23:26 -04:00
Raymond Hettinger
088cbf2d39
Issue #15805 : Add contextlib.redirect_stdout()
2013-10-10 00:46:57 -07:00
Tim Peters
3d1b7a0c10
Whitespace normalization.
2013-10-08 21:29:27 -05:00
Tim Peters
e99bdb9694
Issue 19158: a rare race in BoundedSemaphore could allow .release() too often.
2013-10-08 21:12:58 -05:00
Tim Peters
7634e1cf90
Issue 19158: a rare race in BoundedSemaphore could allow .release() too often.
2013-10-08 20:55:51 -05:00
Antoine Pitrou
77e904e6a6
Issue #18948 : improve SuppressCoreFiles to include Windows crash popup suppression, and use it in more tests.
...
Patch by Valerie Lambert and Zachary Ware.
2013-10-08 23:04:32 +02:00
Ethan Furman
648f860c22
Close #19156 : add tests and fix for Enum helper edge cases. Patch from CliffM.
2013-10-06 17:19:54 -07:00
Victor Stinner
ab5a58d827
test_import.test_module_with_large_stack(): unload the test module
...
Ensure that the module is unloaded to be able to run the test more than once,
and to not leak memory.
2013-10-06 22:52:37 +02:00
Raymond Hettinger
3472fafe74
merge
2013-10-05 17:20:18 -07:00
Raymond Hettinger
facd0a346f
Strengthen one of the collections.Counter() tests
2013-10-05 17:14:51 -07:00
Antoine Pitrou
5df8a8a1fd
Issue #19087 : Improve bytearray allocation in order to allow cheap popping of data at the front (slice deletion).
2013-10-05 21:12:18 +02:00
Eric Snow
7e70fa5314
[issue 19152] Ensure we have actually registered ExtensionFileLoader as an ExecutionLoader.
2013-10-04 20:28:52 -06:00
Ezio Melotti
a349478573
#19166 : merge with 3.3.
2013-10-05 03:14:13 +03:00
Ezio Melotti
4e1f3d669b
#19166 : use an unused var in a test. Patch by Vajrasky Kok.
2013-10-05 03:07:03 +03:00
Raymond Hettinger
07573d7b24
merge
2013-10-04 16:52:39 -07:00
Raymond Hettinger
cb1d96f782
Issue #18594 : Make the C code more closely match the pure python code.
2013-10-04 16:51:02 -07:00
Brett Cannon
3ad327ec3a
Issue #16803 : Run test.test_importlib.test_abc under both
...
_frozen_importlib and source.
2013-10-04 14:47:14 -04:00
Antoine Pitrou
0e61ed8400
Issue #19014 : memoryview.cast() is now allowed on zero-length views.
2013-10-03 19:56:54 +02:00
Antoine Pitrou
60b183407c
Issue #19014 : memoryview.cast() is now allowed on zero-length views.
2013-10-03 19:55:41 +02:00
Nick Coghlan
fdf239a855
Close #17839 : support bytes-like objects in base64 module
...
This mostly affected the encodebytes and decodebytes function
(which are used by base64_codec)
Also added a test to ensure all bytes-bytes codecs can handle
memoryview input and tests for handling of multidimensional
and non-bytes format input in the modern base64 API.
2013-10-03 00:43:22 +10:00
Brett Cannon
0de3f0197b
Tweak skipIf message
2013-10-02 10:58:58 -04:00
Brett Cannon
634a8fc042
Try to fix issue #19134 again
2013-10-02 10:25:42 -04:00
Nick Coghlan
45163ccce4
Close #18690 : register memoryview with Sequence ABC
2013-10-02 22:31:47 +10:00
Nick Coghlan
a0f169cde8
Close #19078 : memoryview now supports reversed
...
Patch by Claudiu Popa
2013-10-02 22:06:54 +10:00
Serhiy Storchaka
7c411a4041
Issue #19132 : The pprint module now supports compact mode.
2013-10-02 11:56:18 +03:00
Serhiy Storchaka
092bd388ce
Issue #19137 : The pprint module now correctly formats instances of set and
...
frozenset subclasses.
2013-10-02 11:43:30 +03:00
Serhiy Storchaka
51844384f4
Issue #19137 : The pprint module now correctly formats instances of set and
...
frozenset subclasses.
2013-10-02 11:40:49 +03:00
Nick Coghlan
f05d981f58
Close #10042 : functools.total_ordering now handles NotImplemented
...
(Patch by Katie Miller)
2013-10-02 00:02:03 +10:00
Nick Coghlan
e6f4631f08
Merge #19092 from 3.3
2013-10-01 23:28:00 +10:00
Nick Coghlan
1a33b2f35b
Close #19092 : ExitStack now reraises exceptions from __exit__
...
Report and patch by Hrvoje Nikšić
2013-10-01 23:24:56 +10:00
Brett Cannon
63f03ed3db
Issue #19134 : Make a test in inspect conditional on multiprocessing
...
being available.
Thanks to Remi Pointel for the bug report.
2013-09-30 15:21:09 -04:00
Benjamin Peterson
95536b8405
rename some more tests to avoid duplicate names ( #19123 )
2013-09-29 15:18:43 -04:00
Antoine Pitrou
20b85557f2
Issue #19095 : SSLSocket.getpeercert() now raises ValueError when the SSL handshake hasn't been done.
2013-09-29 19:50:53 +02:00
Richard Oudkerk
085ab4a553
Merge.
2013-09-29 17:33:04 +01:00
Richard Oudkerk
8b3f5aafd3
Issue #19112 : avoid using function defined in method.
2013-09-29 17:29:56 +01:00
Benjamin Peterson
70157e8f02
merge 3.3 ( #19112 )
2013-09-29 11:11:10 -04:00
Benjamin Peterson
cc6ef3620f
move helper function into its test method ( closes #19112 )
2013-09-29 11:08:04 -04:00
Benjamin Peterson
353d450928
merge 3.3 ( #19117 )
2013-09-29 10:53:59 -04:00
Benjamin Peterson
52010b40f6
fix duplicate test names in test_dis ( closes #19117 )
2013-09-29 10:53:49 -04:00
Benjamin Peterson
42686e45c1
merge 3.3 ( #19118 )
2013-09-29 10:51:08 -04:00
Benjamin Peterson
f8ab76039b
remove duplicate test_mkd ( closes #19118 )
2013-09-29 10:51:00 -04:00
Benjamin Peterson
3dcdacfe6a
merge 3.3 ( #19116 )
2013-09-29 10:50:24 -04:00
Benjamin Peterson
db0601f871
combine two tests to avoid duplicate names ( closes #19116 )
2013-09-29 10:50:15 -04:00
Benjamin Peterson
177d89ce90
merge 3.3 ( #19126 )
2013-09-29 10:48:39 -04:00
Benjamin Peterson
e8c8a592e7
fix duplicate test name ( closes #19126 )
2013-09-29 10:48:19 -04:00
Benjamin Peterson
e86eb89b97
merge 3.3 ( #19125 )
2013-09-29 10:47:04 -04:00
Benjamin Peterson
1eca062be6
fix test to run and test that smtpd does support ELHO ( closes #19125 )
2013-09-29 10:46:31 -04:00
Benjamin Peterson
11f34caac4
delete duplicate test ( closes #19123 )
2013-09-29 10:39:51 -04:00
Benjamin Peterson
96609b701e
merge 3.3 ( #19122 )
2013-09-29 10:02:28 -04:00
Benjamin Peterson
05ab7028ba
remove duplicate test from test_import ( closes #19122 )
2013-09-29 10:01:40 -04:00
Nick Coghlan
4cc2afa0ec
Close #18990 : remove root attribute from XMLPullParser
...
- this was an internal implementation detail for iterparse
- this has been changed to use a new private method instead
- XMLPullParser.close docs are now more explicit about not
returning a root element and instead direct users towards
read_events
- also added missing docstrings and clarified some details
related to exactly *when* events are consumed from the
internal queue
(Initial patch by Stefan Behnel)
2013-09-28 23:50:35 +10:00
Serhiy Storchaka
ab25c7c011
Issue #19053 : ZipExtFile.read1() with non-zero argument no more returns empty
...
bytes until end of data.
2013-09-27 22:14:31 +03:00
Serhiy Storchaka
d2c07a58af
Issue #19053 : ZipExtFile.read1() with non-zero argument no more returns empty
...
bytes until end of data.
2013-09-27 22:11:57 +03:00
Vinay Sajip
cb2c4fe649
Updated test_logging so that errors don't occur in the absence of threading.
2013-09-27 19:08:24 +01:00
Vinay Sajip
f6cdffeb78
Streamlined logging tests by moving common code to a helper function.
2013-09-27 18:41:12 +01:00
Vinay Sajip
5421f35d5e
logging: added support for Unix domain sockets to SocketHandler and DatagramHandler.
2013-09-27 18:18:28 +01:00
Ethan Furman
e03ea37a7b
Close #19030 : improvements to inspect and Enum.
...
inspect.getmembers and inspect.classify_class_attrs now search the metaclass
mro for types.DynamicClassAttributes (what use to be called
enum._RouteClassAttributeToGetattr); in part this means that these two
functions no longer rely solely on dir().
Besides now returning more accurate information, these improvements also
allow a more helpful help() on Enum classes.
2013-09-25 07:14:41 -07:00
Serhiy Storchaka
369606df2f
Issue #19028 : Fixed tkinter.Tkapp.merge() for non-string arguments.
2013-09-23 23:20:07 +03:00
Ethan Furman
64a9972b40
Close #19025 : Better error message when trying to delete an Enum member.
...
Also slight code reorg for PEP 8 guidelines.
2013-09-22 16:18:19 -07:00
Jason R. Coombs
838521eed0
Close #18978 : Merge changes.
2013-09-22 10:06:24 -04:00
Nick Coghlan
f94a16b494
Close #18626 : add a basic CLI for the inspect module
2013-09-22 22:46:49 +10:00
Nick Coghlan
df4cb129e4
Merge from 3.3
2013-09-22 19:38:44 +10:00
Nick Coghlan
ce34687d23
Fix comment in test_gdb
2013-09-22 19:38:16 +10:00
Antoine Pitrou
a78cccb134
test_gdb: skip pretty-printing of sets with gdb < 7.3
...
(should fix the failures on OpenIndiana)
2013-09-22 00:14:27 +02:00
Antoine Pitrou
d0f3e07a60
test_gdb: dump gdb version in verbose mode
2013-09-21 23:56:17 +02:00
R David Murray
4750fa8369
Merge #14984 : On POSIX, enforce permissions when reading default .netrc.
2013-09-17 21:28:17 -04:00
R David Murray
fb9dc0b3ae
Merge #14984 : On POSIX, enforce permissions when reading default .netrc.
2013-09-17 21:04:50 -04:00
R David Murray
8270a2c209
Merge #14984 : On POSIX, enforce permissions when reading default .netrc.
2013-09-17 20:32:54 -04:00
R David Murray
104aab956f
#14984 : On POSIX, enforce permissions when reading default .netrc.
...
Initial patch by Bruno Piguet.
This is implemented as if a useful .netrc file could exist without passwords,
which is possible in the general case; but in fact our netrc implementation
does not support it. Fixing that issue will be an enhancement.
2013-09-17 20:30:02 -04:00
Serhiy Storchaka
935349406a
Issue #18873 : The tokenize module, IDLE, 2to3, and the findnocoding.py script
...
now detect Python source code encoding only in comment lines.
2013-09-16 23:57:00 +03:00
Serhiy Storchaka
dafea85190
Issue #18873 : The tokenize module, IDLE, 2to3, and the findnocoding.py script
...
now detect Python source code encoding only in comment lines.
2013-09-16 23:51:56 +03:00
Ethan Furman
c850f34220
Close #18693 : Enum is now more help() friendly.
2013-09-15 16:59:35 -07:00
Andrew Kuchling
173a157e72
#1565525 : Add traceback.clear_frames() helper function to clear locals ref'd by a traceback
2013-09-15 18:15:56 -04:00
Ethan Furman
101e0746d3
Close #18989 : enum members will no longer overwrite other attributes, nor be overwritten by them.
2013-09-15 12:34:36 -07:00
Raymond Hettinger
c76aa4832b
merge
2013-09-14 20:52:54 -07:00
Raymond Hettinger
46f5ca31d0
Issue #19018 : The heapq.merge() function no longer suppresses IndexError
2013-09-14 20:51:57 -07:00
Ethan Furman
2131a4a2fc
Add __reversed__ to Enum. Minor code reorg (moved __members__ to be in alpha order).
2013-09-14 18:11:24 -07:00
Ezio Melotti
5589bd109a
#18856 : merge with 3.3.
2013-09-15 04:05:04 +03:00
Ezio Melotti
0a32d92bff
Merge heads.
2013-09-15 03:00:42 +03:00
Antoine Pitrou
04d4d6a3aa
Avoid test_logging failure when run after test_unittest, by renaming a conflicting logger
2013-09-14 21:16:39 +02:00
R David Murray
f11caa0bba
Merge #18206 : Fix test for existence of license URL.
...
This test will fail because a previous attempt to fix a merge error
in site.py was incorrect, but the test wasn't running so it wasn't
caught. The next commit will fix the site.py bug.
2013-09-14 13:31:14 -04:00
R David Murray
1bc6ceba92
#18206 : Fix test for existence of license URL.
...
It now always checks, instead of only when the LICENSE file doesn't exist. It
is also protected by the 'network' resource, and uses a HEAD request since we
are only doing an existence check.
2013-09-14 13:28:37 -04:00
Ezio Melotti
87f09371b0
#18856 : improve test coverage of the calendar module. Patch by Madison May.
2013-09-14 04:55:53 +03:00
Charles-François Natali
0cc86850b6
Issue #16201 : socket: Use inet_pton()/inet_addr() instead of ad-hoc parsing for
...
numeric IP addresses.
2013-09-13 19:53:08 +02:00
Eli Bendersky
12f18289c0
Merge for Issue #18997 : Issue #18997 : fix ElementTree crash with using pickle and __getstate__.
2013-09-13 06:27:52 -07:00
Eli Bendersky
dd3661e782
Issue #18997 : fix ElementTree crash with using pickle and __getstate__.
...
Based on report and initial patch from Germán M. Bravo
2013-09-13 06:24:25 -07:00
Eli Bendersky
7290608af7
Issue #18945 : Add tests for tempfile name collision handling.
...
Patch by Vlad Shcherbina
2013-09-13 05:30:00 -07:00
Eli Bendersky
aa04f9ae7d
Issue #18945 : Add tests for tempfile name collision handling.
...
Patch by Vlad Shcherbina
2013-09-13 05:28:20 -07:00
Serhiy Storchaka
bf28d2dcad
Issue #18818 : The "encodingname" part of PYTHONIOENCODING is now optional.
2013-09-13 11:46:24 +03:00
Senthil Kumaran
187b063005
Fix http.server's request handling case on trailing '/'.
...
Patch contributed by Vajrasky Kok. Addresses Issue #17324
2013-09-13 00:22:45 -07:00
Senthil Kumaran
72c238e21a
Fix http.server's request handling case on trailing '/'.
...
Patch contributed by Vajrasky Kok. Addresses Issue #17324
2013-09-13 00:21:18 -07:00
Senthil Kumaran
0b5463fef2
Fix typo
2013-09-09 23:13:06 -07:00
Tim Peters
72460fa68b
Get "stopped" back into repr(Thread) when appropriate.
...
Due to recent changes, a Thread doesn't know that it's over before
someone calls .join() or .is_alive(). That meant repr(Thread)
continued to include "started" (and not "stopped") before one of
those methods was called, even if hours passed since the thread
ended.
Repaired that.
2013-09-09 18:48:24 -05:00
Tim Peters
c363a23eff
Issue 18984: Remove ._stopped Event from Thread internals.
...
The fix for issue 18808 left us checking two things to be sure a Thread
was done: an Event (._stopped) and a mutex (._tstate_lock). Clumsy &
brittle. This patch removes the Event, leaving just a happy lock :-)
The bulk of the patch removes two excruciating tests, which were
verifying sanity of the internals of the ._stopped Event after a fork.
Thanks to Antoine Pitrou for verifying that's the only real value
these tests had.
One consequence of moving from an Event to a mutex: waiters (threads
calling Thread.join()) used to block each on their own unique mutex
(internal to the ._stopped event), but now all contend on the same
mutex (._tstate_lock). These approaches have different performance
characteristics on different platforms. I don't think it matters in
this context.
2013-09-08 18:44:40 -05:00
Serhiy Storchaka
d86709ce91
Fixed tests with Tcl/Tk <8.5 ( closes #18964 ).
2013-09-08 20:31:20 +03:00
Serhiy Storchaka
dfa689bfdd
Fixed tests with Tcl/Tk <8.5 ( closes #18964 ).
2013-09-08 20:29:37 +03:00
Jason R. Coombs
4a6524295d
Issue #18978 : Add tests to capture expected behavior for class-level method overrides.
2013-09-08 13:03:40 -04:00
Victor Stinner
4f7a36f84f
Issue #18904 : test_os and test_socket use unittest.skipIf() to check if fcntl
...
module is present (to record skipped tests)
2013-09-08 14:14:38 +02:00
Antoine Pitrou
5da7e7959e
Issue #18808 again: fix the after-fork logic for not-yet-started or already-stopped threads.
...
(AFAICT, in theory, we must reset all the locks, not just those in use)
2013-09-08 13:19:06 +02:00
Charles-François Natali
6f6f4865d1
Merge.
2013-09-08 12:35:53 +02:00
Charles-François Natali
807ba8552a
Issue #18963 : skip test_selectors.test_above_fd_setsize on older OS X versions.
2013-09-08 12:31:32 +02:00
Charles-François Natali
833bf1fcb2
Issue #18935 : Fix test_regrtest.test_timeout when built --without-threads (the
...
'--timeout' option requires faulthandler.dump_traceback_later).
2013-09-08 12:27:33 +02:00
Victor Stinner
a3c18d0f14
Issue #18904 : test_socket: add inheritance tests using fcntl and FD_CLOEXEC
2013-09-08 11:53:09 +02:00
Victor Stinner
7ba6b0f943
Issue #18904 : Improve os.get/set_inheritable() tests
2013-09-08 11:47:54 +02:00
Victor Stinner
8898350076
Close #18957 : The PYTHONFAULTHANDLER environment variable now only enables the
...
faulthandler module if the variable is non-empty. Same behaviour than other
variables like PYTHONDONTWRITEBYTECODE.
2013-09-08 11:36:23 +02:00
Charles-François Natali
9437d7a7fe
Issue #18963 : Fix test_selectors.test_above_fd_setsize on OS X, where the
...
default RLIMIT_NOFILE hard limit can be RLIMIT_INFINITY.
2013-09-08 11:34:42 +02:00
Nick Coghlan
ff6382b40d
Merge #18952 fix from 3.3
2013-09-08 12:49:53 +10:00
Nick Coghlan
0494c2ae7f
Close #18952 : correctly download test support data
...
When test.support was converted to a package, it started silently
skipping the tests which needed to download support data to run.
This change refactors the affected code, and also tidies up
test.support.findfile to remove the unused *here* parameter, document
the *subdir* parameter and rename the *filename* parameter to avoid
shadowing the file builtin and be consistent with the documentation.
The unexpected skips were noticed and reported by Zachary Ware
2013-09-08 11:40:34 +10:00
Antoine Pitrou
7b4769937f
Issue #18808 : Thread.join() now waits for the underlying thread state to be destroyed before returning.
...
This prevents unpredictable aborts in Py_EndInterpreter() when some non-daemon threads are still running.
2013-09-07 23:38:37 +02:00
Senthil Kumaran
2f2ae39037
merge from 3.3
...
Fix License URL display and add test to check for license url presence.
Fixes issue #18206 Patch contributed by Berker Peksag and py.user
2013-09-07 14:09:48 -07:00
Senthil Kumaran
8ef519b24f
Fix License URL display and add test to check for license url presence.
...
Fixes issue #18206 Patch contributed by Berker Peksag and py.user
2013-09-07 13:59:17 -07:00
Tim Peters
f4ecfae75f
Merge 3.3 into default.
...
Issue 18944: fix a 1-character typo in test_set.py.
The error caused test_inline_methods() to test much less than intended.
Caught (& fixed) by Armin Rigo.
2013-09-06 15:42:47 -05:00
Tim Peters
23d7d4e85c
Issue 18944: fix a 1-character typo in test_set.py.
...
The error caused test_inline_methods() to test much less than intended.
Caught (& fixed) by Armin Rigo.
2013-09-06 15:41:30 -05:00
Antoine Pitrou
66ff01fede
Remove old-school inheritance
2013-09-06 21:18:25 +02:00
Charles-François Natali
6703bb4984
Issue #18934 : Relax test_multiprocessing.test_invalid_handles a bit: we just
...
want to check that Connection.poll() doesn't crash.
2013-09-06 21:12:22 +02:00
Antoine Pitrou
b0478b3f5f
Issue #18623 : Factor out the _SuppressCoreFiles context manager into test.support.
...
Patch by Valerie Lambert.
2013-09-06 20:50:00 +02:00
Ethan Furman
f203f2d51d
Close #18924 : Block naive attempts to change an Enum member.
2013-09-06 07:16:48 -07:00
Eli Bendersky
cdac551675
Issue #18920 : argparse's default version action (for -v, --version) should
...
output to stdout, matching the 'python -v'
Reported by Wolfgang Maier
2013-09-06 06:49:15 -07:00
Eli Bendersky
309836c5c8
Issue #18849 : Fixed a Windows-specific tempfile bug where collision with an
...
existing directory caused mkstemp and related APIs to fail instead of
retrying. Report and fix by Vlad Shcherbina.
2013-09-06 06:14:16 -07:00
Eli Bendersky
f315df31bd
Issue #18849 : Fixed a Windows-specific tempfile bug where collision with an
...
existing directory caused mkstemp and related APIs to fail instead of
retrying. Report and fix by Vlad Shcherbina.
2013-09-06 06:11:19 -07:00
Serhiy Storchaka
1e0d82cece
Issue #18830 : inspect.getclasstree() no more produces duplicated entries even
...
when input list contains duplicates.
2013-09-05 17:16:12 +03:00
Serhiy Storchaka
362c1b513d
Issue #18830 : inspect.getclasstree() no more produces duplicated entries even
...
when input list contains duplicates.
2013-09-05 17:14:32 +03:00
Serhiy Storchaka
34d201374c
Issue #18878 : sunau.open now supports the context manager protocol. Based on
...
patches by Claudiu Popa and R. David Murray.
2013-09-05 17:01:53 +03:00
Antoine Pitrou
e619427f7e
Issue #18876 : The FileIO.mode attribute now better reflects the actual mode under which the file was opened.
...
Patch by Erik Bray.
2013-09-04 20:52:14 +02:00
Antoine Pitrou
e93b63b74b
Issue #18876 : The FileIO.mode attribute now better reflects the actual mode under which the file was opened.
...
Patch by Erik Bray.
2013-09-04 20:46:33 +02:00
Charles-François Natali
243d8d85de
Issue #16853 : Add new selectors module.
2013-09-04 19:02:49 +02:00
Andrew Svetlov
58b5c5ad14
Issue #18882 : Add threading.main_thread() function.
2013-09-04 07:01:07 +03:00
Meador Inge
3c56145638
Issue #16826 : Revert fix while Windows issues are being worked out.
2013-09-03 19:54:40 -05:00
Meador Inge
c9e1dcdd53
Issue #16826 : Revert fix while Windows issues are being worked out.
2013-09-03 19:43:49 -05:00
Meador Inge
2b0a98f540
Merge heads.
2013-09-03 17:32:13 -05:00
Meador Inge
9ab358ad7c
Issue #16826 : Don't check for PYTHONCASEOK when using -E.
...
This commit fixes a regression that sneaked into Python 3.3 where importlib
was not respecting -E when checking for the PYTHONCASEOK environment variable.
2013-09-03 16:53:22 -05:00
Serhiy Storchaka
e06a89655a
Issue #18901 : The sunau getparams method now returns a namedtuple rather than
...
a plain tuple. Patch by Claudiu Popa.
2013-09-04 00:43:03 +03:00
Meador Inge
d151da9ef7
Issue #16826 : Don't check for PYTHONCASEOK when using -E.
...
This commit fixes a regression that sneaked into Python 3.3 where importlib
was not respecting -E when checking for the PYTHONCASEOK environment variable.
2013-09-03 16:37:26 -05:00
Serhiy Storchaka
4c6a020a2d
Issue #17487 : The result of the wave getparams method now is pickleable again.
...
Patch by Claudiu Popa.
2013-09-04 00:28:43 +03:00
Eli Bendersky
e8de29669d
Remove unused --debug option of regrtest.
...
If bots fail due to using this flag, the buildbot scripts have to be modified
to omit it. Regrtest ignores it anyway.
2013-09-02 17:01:10 -07:00
Eli Bendersky
e5eebedd55
Fix docstring and some indentation
2013-09-02 16:52:25 -07:00
Eli Bendersky
7f5c22c022
Refactor the main function of regrtest a bit.
...
Moving subprocess execution of tests into a function.
2013-09-02 08:57:21 -07:00
Ethan Furman
a661f4531e
Close #18745 : Improve enum tests in test_json for infinities and NaN.
2013-09-02 01:14:56 -07:00
Antoine Pitrou
625eed765a
test_threading isn't rudimentary anymore
2013-09-01 19:52:08 +02:00
Antoine Pitrou
4c8ce847e6
test_threading isn't rudimentary anymore
2013-09-01 19:51:49 +02:00
Victor Stinner
f6fa22efe0
Issue #18571 : Merge duplicate test code
...
Merge test/subprocessdata/inherited.py into test/subprocessdata/fd_status.py
2013-09-01 10:22:41 +02:00
Andrew Svetlov
8913a6c83d
Issue #11798 : fix tests for regrtest -R :
2013-09-01 07:58:41 +03:00
Ethan Furman
ec15a826ce
Close #18738 : Route __format__ calls to mixed-in type for mixed Enums (such as IntEnum).
2013-08-31 19:17:41 -07:00
Eli Bendersky
b2ff3cf0e9
Switch the AF_* and SOCK_* constants in the socket module to IntEnum.
...
Closes #18720 .
2013-08-31 15:13:30 -07:00
Terry Jan Reedy
7e7cf8bc51
Issue #12037 : Fix test_email for desktop Windows.
2013-08-31 17:16:45 -04:00
Terry Jan Reedy
740d6b6f39
Issue #12037 : Fix test_email for desktop Windows.
2013-08-31 17:12:21 -04:00
Ethan Furman
13bdfa7a7f
Issue #18780 : code cleanup.
2013-08-31 12:48:51 -07:00
Ethan Furman
fb13721b1b
Close #18780 : %-formatting now prints value for int subclasses with %d, %i, and %u codes.
2013-08-31 10:18:55 -07:00
Charles-François Natali
08548f4a75
Merge.
2013-08-31 17:32:30 +02:00
Charles-François Natali
fcfb324e81
Use the recent support.HOSTv6 addition.
2013-08-31 14:40:49 +02:00
Antoine Pitrou
267964c837
Forward port new tests from Issue #18851 .
2013-08-31 00:12:37 +02:00
Antoine Pitrou
a8392717f1
Forward port new tests from Issue #18851 .
2013-08-30 23:38:13 +02:00
Charles-François Natali
79a53ea7d7
Issue #18418 : After fork(), reinit all threads states, not only active ones.
...
Patch by A. Jesse Jiryu Davis.
2013-08-30 23:34:26 +02:00
Charles-François Natali
9939cc89a4
Issue #18418 : After fork(), reinit all threads states, not only active ones.
...
Patch by A. Jesse Jiryu Davis.
2013-08-30 23:32:53 +02:00
Eli Bendersky
b586934f0e
Issue #17741 : Rename IncrementalParser and its methods.
...
The new names are hopefully more descriptive and consistent. If you feel you
don't agree with this change, *please* read issue 17741 first - there's a lot of
discussion in there.
2013-08-30 05:51:20 -07:00
Gregory P. Smith
6cc50391a6
Fixes Issue #15507 : test_subprocess's test_send_signal could fail if the test
...
runner were run in an environment where the process inherited an ignore
setting for SIGINT. Restore the SIGINT handler to the desired
KeyboardInterrupt raising one during that test.
2013-08-29 13:39:44 -07:00
Gregory P. Smith
dee0434e2f
Fixes issue #15507 : test_subprocess's test_send_signal could fail if the test
...
runner were run in an environment where the process inherited an ignore
setting for SIGINT. Restore the SIGINT handler to the desired
KeyboardInterrupt raising one during that test.
2013-08-29 13:35:27 -07:00
Charles-François Natali
f25f80c839
Merge.
2013-08-29 19:27:17 +02:00
Charles-François Natali
e33d5b0bc8
Merge.
2013-08-29 19:26:37 +02:00
Charles-François Natali
74b7408604
Issue #18643 : Fix some test_socket failures due to large default socket buffer
...
sizes.
2013-08-29 19:02:23 +02:00
Charles-François Natali
5fd2642adb
Issue #18643 : Fix some test_socket failures due to large default socket buffer
...
sizes.
2013-08-29 19:01:40 +02:00
Richard Oudkerk
e0d25ce1fe
Issue #8713 : Print dangling processes/threads, if any.
2013-08-29 14:37:47 +01:00
Richard Oudkerk
83d7dea6aa
Issue #8713 : Cleanup before saving process._dangling.
2013-08-29 12:51:11 +01:00
Richard Oudkerk
968d05594e
Issue #8713 : Test should not print message about start method.
2013-08-29 12:41:19 +01:00
Serhiy Storchaka
64f7c4e4ca
Issue #16799 : Switched from getopt to argparse style in regrtest's argument
...
parsing. Added more tests for regrtest's argument parsing.
2013-08-29 12:26:23 +03:00
Serhiy Storchaka
48e6a8c88a
Issue #18743 : Fix references to non-existant "StringIO" module
...
in docstrings and comments.
2013-08-29 11:39:48 +03:00
Serhiy Storchaka
50254c57cd
Issue #18743 : Fix references to non-existant "StringIO" module
...
in docstrings and comments.
2013-08-29 11:35:43 +03:00
Andrew Svetlov
7c1017bfee
Fix tests for #11798
2013-08-29 01:24:39 +03:00
Richard Oudkerk
6a53af893a
Issue #18786 : Don't reinstall old SIGUSR1 handler prematurely.
2013-08-28 13:50:19 +01:00
Victor Stinner
d98af985d0
(Merge 3.3) Fix @requires_freebsd_version and @requires_linux_version
...
decorators of test.support, run the test if the platform matchs!
2013-08-28 12:34:16 +02:00
Victor Stinner
d39dca9e33
Fix test_socket.test_SOCK_CLOEXEC(), the test was wrong
2013-08-28 12:28:18 +02:00
Victor Stinner
3b44a409de
Fix @requires_freebsd_version and @requires_linux_version decorators of
...
test.support, run the test if the platform matchs!
2013-08-28 12:26:28 +02:00
Victor Stinner
bff989ed20
test_posix.test_pipe2() now checks that the O_NONBLOCK flag is set
...
Use also os.get_inheritable() instead of fcntl() to check the inheritable flag
(FD_CLOEXEC).
2013-08-28 12:25:40 +02:00
Victor Stinner
daf455554b
Issue #18571 : Implementation of the PEP 446: file descriptors and file handles
...
are now created non-inheritable; add functions os.get/set_inheritable(),
os.get/set_handle_inheritable() and socket.socket.get/set_inheritable().
2013-08-28 00:53:59 +02:00
Serhiy Storchaka
46e1ce214b
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 20:17:03 +03:00
Serhiy Storchaka
9594942716
Issue #18783 : Removed existing mentions of Python long type in docstrings,
...
error messages and comments.
2013-08-27 19:40:23 +03:00
Victor Stinner
14e461d5b9
Close #11619 : The parser and the import machinery do not encode Unicode
...
filenames anymore on Windows.
2013-08-26 22:28:21 +02:00
Ezio Melotti
ec42975bc6
#18833 : merge with 3.3.
2013-08-26 00:17:21 +03:00
Ezio Melotti
4f1353ab10
#18833 : add a test for test_telnetlib. Patch by Alex Volkov.
2013-08-25 23:56:43 +03:00
Antoine Pitrou
7eaf3f7080
Issue #18808 : Non-daemon threads are now automatically joined when a sub-interpreter is shutdown (it would previously dump a fatal error).
2013-08-25 19:48:18 +02:00
Charles-François Natali
a439b32cf0
Merge.
2013-08-25 18:28:44 +02:00
Charles-François Natali
c20a7b977e
Merge.
2013-08-25 18:27:59 +02:00
Charles-François Natali
249cdc39fc
Issue #18763 : subprocess: The file descriptors are now closed after calling the
...
preexec_fn callback, which may open file descriptors.
2013-08-25 18:24:45 +02:00
R David Murray
0cb8e5131d
Merge #16611 : BaseCookie now parses 'secure' and 'httponly' flags.
2013-08-25 11:09:45 -04:00
R David Murray
cd0f74b1e0
#16611 : BaseCookie now parses 'secure' and 'httponly' flags.
...
Previously it generated them if they were given a value, but completely
ignored them if they were present in the string passed in to be parsed. Now
if the flag appears on a cookie, the corresponding Morsel key will reference a
True value. Other pre-existing behavior is retained in this maintenance
patch: if the source contains something like 'secure=foo', morsel['secure']
will return 'foo'. Since such a value doesn't round trip and never did (and
would be a surprising occurrence) a subsequent non-bug-fix patch may change
this behavior.
Inspired by a patch from Julien Phalip, who reviewed this one.
2013-08-25 11:09:02 -04:00
Christian Heimes
2769d44827
Issue #18709 : Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger
2013-08-25 14:12:50 +02:00
Christian Heimes
157c9834b4
Issue #18709 : Fix issue with IPv6 address in subjectAltName on Mac OS X Tiger
2013-08-25 14:12:41 +02:00
Antoine Pitrou
f5e30d8b54
Issue #18756 : make test_urandom_failure more robust by executing its code in a subprocess
2013-08-24 20:52:45 +02:00
Antoine Pitrou
eba25bafc7
Issue #18756 : make test_urandom_failure more robust by executing its code in a subprocess
2013-08-24 20:52:27 +02:00
Victor Stinner
e726ce1f3e
(Merge 3.3) test_socket: cancel scheduled alarm on test failure
2013-08-24 15:53:39 +02:00
Victor Stinner
71fe8c00f6
test_socket: cancel scheduled alarm on test failure
2013-08-24 15:52:47 +02:00
Benjamin Peterson
3a7dffa4ce
remove support for compiling on systems without getcwd()
...
Do we need a fallback implementation of getcwd() from 1991 that claims to
support "really old Unix systems"? I don't think so.
2013-08-23 21:01:48 -05:00
Ezio Melotti
892584e091
#18798 : merge typo fix from 3.3 and also use two unused variables.
2013-08-23 23:09:32 +03:00
Ezio Melotti
78ede7c96d
#18798 : fix typo in test_fcntl. Patch by Vajrasky Kok.
2013-08-23 23:06:31 +03:00
Brett Cannon
9c7eb55570
Stop using assertEquals.
2013-08-23 14:38:11 -04:00
Brett Cannon
7e0a18158f
Make test_import more robust and stop using assertRaisesRegexp().
2013-08-23 14:31:27 -04:00
Victor Stinner
a93c6db68b
(Merge 3.3) Close #17702 : On error, os.environb now removes suppress the except
...
context when raising a new KeyError with the original key.
2013-08-23 19:23:42 +02:00
Victor Stinner
0c2dd0c0a9
Close #17702 : On error, os.environb now removes suppress the except context
...
when raising a new KeyError with the original key.
2013-08-23 19:19:15 +02:00
Brett Cannon
330cc52c99
Delete merge markers
2013-08-23 12:10:09 -04:00
Brett Cannon
16ababc213
merge for issue #18755
2013-08-23 11:52:19 -04:00
Brett Cannon
a4975a911d
Issue #18755 : Allow imp.load_*() loaders to have get_data() called
...
multiple times.
2013-08-23 11:45:57 -04:00
Richard Oudkerk
67e5198dbf
Make test for semaphore tracker capture and check the debug output.
2013-08-22 23:37:23 +01:00