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
Serhiy Storchaka
254954aacd
Issue #16809 : Tkinter's splitlist() and split() methods now accept Tcl_Obj
...
argument.
This is needed for support Tcl/Tk 8.6.
2013-08-22 17:42:05 +03:00
Serhiy Storchaka
203eb317d2
Issue #16809 : Tkinter's splitlist() and split() methods now accept Tcl_Obj
...
argument.
This is needed for support Tcl/Tk 8.6.
2013-08-22 17:40:31 +03:00
R David Murray
b8c537094d
Merge #18324 : set_payload now correctly handles binary input.
2013-08-21 21:13:51 -04:00
R David Murray
00ae435dee
#18324 : set_payload now correctly handles binary input.
...
This also backs out the previous fixes for for #14360 , #1717 , and #16564 .
Those bugs were actually caused by the fact that set_payload didn't decode to
str, thus rendering the model inconsistent. This fix does mean the data
processed by the encoder functions goes through an extra encode/decode cycle,
but it means the model is always consistent. Future API updates will provide
a better way to encode payloads, which will bypass this minor de-optimization.
Tests by Vajrasky Kok.
2013-08-21 21:10:31 -04:00
Victor Stinner
82fb71d662
Cleanup test_builtin
2013-08-22 01:58:12 +02:00
Victor Stinner
0f24b879c9
Use new new stat.S_ISDOOR() function, instead of hardcoded mask
2013-08-22 01:58:04 +02:00
Antoine Pitrou
1e440cf5a2
Issue #18792 : Use "127.0.0.1" or "::1" instead of "localhost" as much as possible, since "localhost" goes through a DNS lookup under recent Windows versions.
2013-08-22 00:39:46 +02:00
Antoine Pitrou
f6fbf56071
Issue #18792 : Use "127.0.0.1" or "::1" instead of "localhost" as much as possible, since "localhost" goes through a DNS lookup under recent Windows versions.
2013-08-22 00:39:46 +02:00
Victor Stinner
13423c3726
Close #18794 : Add a fileno() method and a closed attribute to select.devpoll
...
objects.
Add also tests on fileno() method and closed attribute of select.epoll and select.kqueue.
2013-08-22 00:19:50 +02:00
Serhiy Storchaka
43f80e6c1f
Merge heads
2013-08-21 21:52:50 +03:00
Richard Oudkerk
a01fb39877
Issue #18762 : Print debug info on failure to create new forkserver process.
...
Also modify test code to hopefully avoid deadlock on failure.
2013-08-21 19:45:19 +01:00
Serhiy Storchaka
4e4088d273
Issue #17119 : Fixed integer overflows when processing large strings and tuples
...
in the tkinter module.
2013-08-21 21:43:08 +03:00
Serhiy Storchaka
9e6b97502f
Issue #17119 : Fixed integer overflows when processing large strings and tuples
...
in the tkinter module.
2013-08-21 21:38:21 +03:00
Christian Heimes
6acbe2aaa3
Issue #18747 : Re-seed OpenSSL's pseudo-random number generator after fork.
...
A pthread_atfork() child handler is used to seeded the PRNG with pid, time
and some stack data.
2013-08-21 13:26:34 +02:00
Christian Heimes
f77b4b20e9
Issue #18747 : Re-seed OpenSSL's pseudo-random number generator after fork.
...
A pthread_atfork() child handler is used to seeded the PRNG with pid, time
and some stack data.
2013-08-21 13:26:05 +02:00
Christian Heimes
0688897f05
Fix rev85282, add missing import of subprocess module
2013-08-20 22:09:41 +02:00
Serhiy Storchaka
5617df1be6
Issue #8865 : Concurrent invocation of select.poll.poll() now raises a
...
RuntimeError exception. Patch by Christian Schubert.
2013-08-20 20:50:32 +03:00
Serhiy Storchaka
b1973c252c
Issue #8865 : Concurrent invocation of select.poll.poll() now raises a
...
RuntimeError exception. Patch by Christian Schubert.
2013-08-20 20:38:21 +03:00
Antoine Pitrou
bb2c45e7a4
Issue #7732 : try to fix test_bug7732's flakiness on Windows by executing it in a fresh temporary directory.
2013-08-19 23:31:18 +02:00
Serhiy Storchaka
228c194596
Issue #2537 : Remove breaked check which prevented valid regular expressions.
...
Patch by Meador Inge.
See also issue #18647 .
2013-08-19 23:19:49 +03:00
Serhiy Storchaka
98985a1980
Issue #2537 : Remove breaked check which prevented valid regular expressions.
...
Patch by Meador Inge.
See also issue #18647 .
2013-08-19 23:18:23 +03:00
Antoine Pitrou
8f0bddad30
Make test_wakeup_write_error more robust
...
(trying to fix a failure on the FreeBSD 9.0 buildbot)
2013-08-17 21:43:47 +02:00
Antoine Pitrou
6f6ec37838
Issue #16105 : When a signal handler fails to write to the file descriptor registered with ``signal.set_wakeup_fd()``, report an exception instead of ignoring the error.
2013-08-17 20:27:56 +02:00
Ezio Melotti
a7e7497d88
#18466 : merge with 3.3.
2013-08-17 16:58:13 +03:00
Ezio Melotti
85a8629d21
#18466 : fix more typos. Patch by Févry Thibault.
2013-08-17 16:57:41 +03:00
Ezio Melotti
e0c69161bc
#18741 : merge with 3.3.
2013-08-17 16:13:22 +03:00
Ezio Melotti
b5bc353b88
#18741 : fix more typos. Patch by Févry Thibault.
2013-08-17 16:11:40 +03:00
Christian Heimes
e06d47c70c
Issue #18709 : Fix CVE-2013-4238. The SSL module now handles NULL bytes
...
inside subjectAltName correctly. Formerly the module has used OpenSSL's
GENERAL_NAME_print() function to get the string represention of ASN.1
strings for rfc822Name (email), dNSName (DNS) and
uniformResourceIdentifier (URI).
2013-08-17 00:58:00 +02:00
Christian Heimes
a3811e4b8f
merge
2013-08-17 00:55:39 +02:00
Christian Heimes
824f7f366d
Issue #18709 : Fix CVE-2013-4238. The SSL module now handles NULL bytes
...
inside subjectAltName correctly. Formerly the module has used OpenSSL's
GENERAL_NAME_print() function to get the string represention of ASN.1
strings for rfc822Name (email), dNSName (DNS) and
uniformResourceIdentifier (URI).
2013-08-17 00:54:47 +02:00
Charles-François Natali
5c03d20757
Issue #16463 : Fix a transient test_timeout failure.
2013-08-16 23:19:56 +02:00
Charles-François Natali
7bf1125e9f
Issue #16463 : Fix a transient test_timeout failure.
2013-08-16 23:19:22 +02:00
Antoine Pitrou
c593056744
Fix the default placeholder in textwrap.shorten() to be " [...]".
...
For some reason I forgot to do it before committing the patch in issue #18585 .
2013-08-16 22:31:12 +02:00
Antoine Pitrou
05eafa887b
Make test.support.reap_threads() faster
2013-08-16 21:02:02 +02:00
Antoine Pitrou
95b21460ee
Issue #18756 : Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
2013-08-16 20:49:32 +02:00
Antoine Pitrou
ec34ab5010
Issue #18756 : Improve error reporting in os.urandom() when the failure is due to something else than /dev/urandom not existing.
2013-08-16 20:44:38 +02:00
Antoine Pitrou
566c470e3e
Issue #1666318 : Add a test that shutil.copytree() retains directory permissions.
...
Patch by Catherine Devlin.
2013-08-16 19:36:18 +02:00
Antoine Pitrou
ac601601ce
Issue #1666318 : Add a test that shutil.copytree() retains directory permissions.
...
Patch by Catherine Devlin.
2013-08-16 19:35:02 +02:00
Christian Heimes
37d5cebb48
Change the builtin hash algorithms' names to lower case names
...
as promised by hashlib's documentation.
2013-08-15 18:31:48 +02:00
Victor Stinner
f0e521036c
(Merge 3.3) Issue #18296 : Try to fix TestSendfile.test_trailers() of test_os on FreeBSD
2013-08-15 11:57:19 +02:00
Victor Stinner
5e4d6398a1
Issue #18296 : Try to fix TestSendfile.test_trailers() of test_os on FreeBSD
2013-08-15 11:57:02 +02:00
Eric Snow
8e4554027b
Closes issue #18698 : ensure importlib.reload() returns the module out of sys.modules.
2013-08-14 18:11:09 -06:00
Eric Snow
7491f1726b
issue #18698 : ensure importlib.reload() returns the module out of sys.modules.
2013-08-14 18:03:34 -06:00
Richard Oudkerk
84ed9a68bd
Issue #8713 : Support alternative start methods in multiprocessing on Unix.
...
See http://hg.python.org/sandbox/sbt#spawn
2013-08-14 15:35:41 +01:00
Victor Stinner
97869103ba
Close #12015 : The tempfile module now uses a suffix of 8 random characters
...
instead of 6, to reduce the risk of filename collision. The entropy was reduced
when uppercase letters were removed from the charset used to generate random
characters.
2013-08-14 01:28:28 +02:00
Ezio Melotti
9eaa3e6732
#18687 : merge with 3.3.
2013-08-13 12:54:29 +03:00
Ezio Melotti
4bfa6c54ca
#18687 : remove obsolete comment. Patch by Févry Thibault.
2013-08-13 12:53:40 +03:00
Senthil Kumaran
07abe7aedb
merge from 3.3
...
Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb
2013-08-12 22:26:14 -07:00
Senthil Kumaran
0d53860e2c
Increasing test coverage of ftplib. Patch by Muhammad Jehanzeb
2013-08-12 22:25:27 -07:00
Antoine Pitrou
389dec8bcf
Issue #18585 : Add :func:`textwrap.shorten` to collapse and truncate a piece of text to a given length.
2013-08-12 22:39:09 +02:00
Ethan Furman
388a3921cf
Issue 18693: Put custom __dir__ back in place. Will instead look at fixing `help()`.
2013-08-12 06:51:41 -07:00
Eli Bendersky
8f2c2bcc9d
Add some docstrings, clarify others, and fix formatting.
2013-08-11 16:48:44 -07:00
Eli Bendersky
01ea326a8e
Close #12645 : Clarify and reformat the documentation of import_fresh_module
2013-08-11 15:43:30 -07:00
Eli Bendersky
ba5517d4c0
Issue #12645 : Clarify and reformat the documentation of import_fresh_module
2013-08-11 15:38:08 -07:00
Serhiy Storchaka
3ee11407f8
Issue #18706 : Fix a test for issue #18681 so it no longer breaks test_codeccallbacks*.
2013-08-11 20:13:36 +03:00
Serhiy Storchaka
b212291b08
Issue #18706 : Fix a test for issue #18681 so it no longer breaks test_codeccallbacks*.
2013-08-11 20:12:20 +03:00
Terry Jan Reedy
4a0b6f70f6
Issue #15301 : skip new test method so Windows builtbots stop failing.
2013-08-10 20:58:59 -04:00
Ethan Furman
53f58dbd12
Close #18693 : __dir__ removed from Enum; help() now helpful.
2013-08-10 13:07:49 -07:00
Ethan Furman
a4998a7041
Close #18264 : int- and float-derived enums now converted to int or float.
2013-08-10 13:01:45 -07:00
Ezio Melotti
fbcf4d78c8
#18681 : merge with 3.3.
2013-08-10 20:01:43 +03:00
Ezio Melotti
056bafe7a6
#18681 : Fix a NameError in imp.reload() (noticed by Weizhao Li).
2013-08-10 19:59:36 +03:00
R David Murray
13f4cd6c10
Merge heads.
2013-08-10 12:13:44 -04:00
R David Murray
a9e67ad993
Merge heads.
2013-08-10 12:08:41 -04:00
R David Murray
2bb2f6acd0
Merge #8112 : Update the documenting xmlrpc server to use getfullargspec.
2013-08-10 12:03:54 -04:00
R David Murray
f22b62e261
#8112 : Update the documenting xmlrpc server to use getfullargspec.
...
Before this patch it would raise an error when trying to display
documentation for a method that used annotations.
Patch by Claudiu Popa.
2013-08-10 12:01:47 -04:00
Ezio Melotti
a1e639a0f4
#18505 : merge with 3.3.
2013-08-10 18:57:52 +03:00
Ezio Melotti
1c4810b57b
#18505 : fix duplicate name and remove duplicate test. Patch by Vajrasky Kok.
2013-08-10 18:57:12 +03:00
Ezio Melotti
8281e7c24c
#18453 : merge with 3.3.
2013-08-10 18:37:36 +03:00
Ezio Melotti
319163244a
#18453 : fix unused variables in test_xmlrpc. Patch by Vajrasky Kok.
2013-08-10 18:37:05 +03:00
Ezio Melotti
06c9ab5666
#18465 : merge with 3.3.
2013-08-10 18:30:57 +03:00
Ezio Melotti
0f12be15c6
#18465 : fix unused variables in test_minidom. Patch by Vajrasky Kok.
2013-08-10 18:30:29 +03:00
Ezio Melotti
490eef9a60
#18484 : merge with 3.3.
2013-08-10 18:20:59 +03:00
Ezio Melotti
1d237e5356
#18484 : improve test coverage of http.cookiejar. Patch by Vajrasky Kok.
2013-08-10 18:20:09 +03:00
Ezio Melotti
7f5218a07f
#18483 : merge with 3.3.
2013-08-10 18:08:13 +03:00
Ezio Melotti
7ac17f85d3
#18483 : add one more date format in test_http2time_formats. Patch by Vajrasky Kok.
2013-08-10 18:07:25 +03:00
Christian Heimes
ad73a9cf97
Issue #16400 : Add command line option for isolated mode.
...
-I
Run Python in isolated mode. This also implies -E and -s. In isolated mode
sys.path contains neither the script’s directory nor the user’s
site-packages directory. All PYTHON* environment variables are ignored,
too. Further restrictions may be imposed to prevent the user from
injecting malicious code.
2013-08-10 16:36:18 +02:00
R David Murray
bb17d2b857
#18600 : add policy to add_string, and as_bytes and __bytes__ methods.
...
This was triggered by wanting to make the doctest in email.policy.rst pass;
as_bytes and __bytes__ are clearly useful now that we have BytesGenerator.
Also updated the Message docs to document the policy keyword that was
added in 3.3.
2013-08-09 16:15:28 -04:00
Ezio Melotti
d119b7beba
#18357 : merge with 3.3.
2013-08-08 20:12:57 +03:00
Ezio Melotti
2532635fcd
#18357 : add tests for dictview set difference. Patch by Fraser Tweedale.
2013-08-08 20:12:28 +03:00
Ezio Melotti
e1a6edcebe
#18581 : merge with 3.3.
2013-08-08 19:37:52 +03:00
Ezio Melotti
4e4f3b8d35
#18581 : remove duplicate test and run a test class that was skipped. Initial patch by Vajrasky Kok.
2013-08-08 19:36:36 +03:00
Ezio Melotti
5cc06fde43
#18273 : merge with 3.3.
2013-08-08 15:18:26 +03:00
Ezio Melotti
66f2ea042a
#18273 : move the tests in Lib/test/json_tests to Lib/test/test_json and make them discoverable by unittest. Patch by Zachary Ware.
2013-08-08 15:03:45 +03:00
Larry Hastings
a27b83ad2d
Issue #15301 : Parsing fd, uid, and gid parameters for builtins
...
in Modules/posixmodule.c is now far more robust.
2013-08-08 00:19:50 -07:00
Antoine Pitrou
236a547b3e
Issue #18665 : fix typos. Patch by Vajrasky Kok.
2013-08-06 23:06:59 +02:00
Antoine Pitrou
dbfc129cc8
Issue #18666 : improve test_frame a bit. Patch by Vajrasky Kok.
2013-08-06 23:05:23 +02:00
Serhiy Storchaka
9b855de8d2
Issue #14323 : Expanded the number of digits in the coefficients for the
...
RGB -- YIQ conversions so that they match the FCC NTSC versions.
2013-08-06 11:51:23 +03:00
Antoine Pitrou
9e3d27b574
Followup to 862ab99ab570: I forgot to add the magnificent test_frame.py.
2013-08-05 23:35:43 +02:00
Antoine Pitrou
58720d6145
Issue #17934 : Add a clear() method to frame objects, to help clean up expensive details (local variables) and break reference cycles.
2013-08-05 23:26:40 +02:00
Antoine Pitrou
c53204b947
Issue #4885 : Add weakref support to mmap objects. Patch by Valerie Lambert.
2013-08-05 23:17:30 +02:00
Gregory P. Smith
914061ab15
* Fix the assertions in hashlib to use unittest assertion methods instead of
...
evil assert statements.
* Add an additional assert to the new test_name_attribute test that actually
confirms that a hash created using each h.name results in a new hash sharing
the same name.
2013-08-05 13:14:37 -07:00
Mark Dickinson
f3e4b62d02
Issue #18659 : Backed out changeset cfd875bcbe41 after buildbot failures.
2013-08-05 10:59:36 +01:00
Mark Dickinson
a9e626f704
Issue #18659 : fix test_format test that wasn't being executed. Thanks Vajrasky Kok for the patch.
2013-08-05 10:30:14 +01:00
Jason R. Coombs
b2aa6f4055
Issue 18532: Added tests and documentation to formally specify the .name attribute on hashlib objects.
2013-08-03 11:39:39 +02:00
Alexander Belopolsky
790d269d39
Fixes #8860 : Round half-microseconds to even in the timedelta constructor.
...
(Original patch by Mark Dickinson.)
2013-08-04 14:51:35 -04:00
Ethan Furman
5e5a8230c2
Close #18635 : Move class level private attribute from instance to class.
2013-08-04 08:42:23 -07:00
Eli Bendersky
b9b6ce6f2c
Merge fix for Issue #17011 from 3.3
2013-08-03 17:48:41 -07:00
Eli Bendersky
2acc525a97
Issue #17011 : Fix caching of xpath path when namespaces are present.
...
Thanks to Stefan Behnel for the report and proposed solution & test.
2013-08-03 17:47:47 -07:00
Serhiy Storchaka
739e75000f
Issue #16741 : Remove testing of implementation artifact.
2013-08-04 01:05:02 +03:00
Serhiy Storchaka
3ceaff0777
Issue #16741 : Remove testing of implementation artifact.
2013-08-04 01:04:15 +03:00