Serhiy Storchaka
682ea5f70e
Correct comments and improve failure reports in test_fileinput ( closes #20501 ).
...
Thanks Vajrasky Kok and Zachary Ware.
2014-03-03 21:17:17 +02:00
Serhiy Storchaka
a537eb45fd
Issue #20283 : RE pattern methods now accept the string keyword parameters
...
as documented. The pattern and source keyword parameters are left as
deprecated aliases.
2014-03-06 11:36:15 +02:00
Victor Stinner
e6a537976e
asyncio, Tulip issue 157: Improve test_events.py, avoid run_briefly() which is
...
not reliable
2014-03-06 01:00:36 +01:00
Victor Stinner
eeeebcd816
asyncio: Synchronize with Tulip
...
* Issue #159 : Fix windows_utils.socketpair()
- Use "127.0.0.1" (IPv4) or "::1" (IPv6) host instead of "localhost", because
"localhost" may be a different IP address
- Reject also invalid arguments: only AF_INET/AF_INET6 with SOCK_STREAM (and
proto=0) are supported
* Reject add/remove reader/writer when event loop is closed.
* Fix ResourceWarning warnings
2014-03-06 00:52:53 +01:00
Kristján Valur Jónsson
c5cc5011ac
Make the various iterators' "setstate" sliently and consistently clip the
...
index. This avoids the possibility of setting an iterator to an invalid
state.
2014-03-05 15:23:07 +00:00
Kristján Valur Jónsson
25ea45db81
Merge with 3.3
2014-03-04 23:22:15 +00:00
Nick Coghlan
dc855b7b1f
Close #20839 : pkgutil.find_loader now uses importlib.util.find_spec
2014-03-04 20:39:42 +10:00
Serhiy Storchaka
cd9028ca69
Correct comments and improve failure reports in test_fileinput ( closes #20501 ).
...
Thanks Vajrasky Kok and Zachary Ware.
2014-03-03 21:19:19 +02:00
Yury Selivanov
056e265491
Issue #20786 : Fix signatures for dict.__delitem__ and property.__delete__
2014-03-02 12:25:27 -05:00
Georg Brandl
9fb137cc3f
merge with 3.3
2014-03-02 09:28:24 +01:00
Georg Brandl
2fc8f773e1
Issue #20404 : reject non-text encodings early in TextIOWrapper.
2014-03-02 09:18:31 +01:00
Georg Brandl
2658bad090
merge 3.3.5rc1 release commits with 3.3 branch
2014-03-02 08:54:15 +01:00
Benjamin Peterson
24a945cc6b
merge 3.3 ( #20249 )
2014-03-01 19:14:48 -05:00
Benjamin Peterson
659a6f562b
fix test_posix.test_initgroups to work without supplemental groups ( closes #20249 )
2014-03-01 19:14:12 -05:00
Benjamin Peterson
b77bf32685
fix test on debug builds ( closes #20731 )
2014-03-01 10:31:36 -05:00
Brett Cannon
298bb96776
Issue #20778 : Fix modulefinder to work with bytecode-only modules.
...
Bug filed and initial attempt at a patch by Bohuslav Kabrda.
2014-02-28 10:44:45 -05:00
Martin v. Löwis
815b41b1cd
Issue #20731 : Properly position in source code files even if they
...
are opened in text mode. Patch by Serhiy Storchaka.
2014-02-28 15:27:29 +01:00
Terry Jan Reedy
9db1ab8250
Issue #20567 : Delete class attribute gui widgets in idle tests.
...
Code patch by Serhiy Storchaka
2014-02-27 18:47:49 -05:00
Benjamin Peterson
126041844c
merge 3.3
2014-03-01 10:34:22 -05:00
Brett Cannon
0f3847855d
merge for issue #20778
2014-02-28 10:50:34 -05:00
Martin v. Löwis
80875fe439
Reindent
2014-02-28 15:49:06 +01:00
Martin v. Löwis
9c17ff91f3
Merge heads
2014-02-28 15:47:15 +01:00
Martin v. Löwis
78f1e4c865
Merge with 3.3
2014-02-28 15:43:36 +01:00
Nick Coghlan
4a6dc3a726
Close #20757 : return success for skipped pip uninstall
...
The 3.4rc2 Windows uninstaller would fail if pip had been updated
to a version that didn't match the version installed by ensurepip.
This skip is no longer treated as an error, so an updated pip ends
up being handled like any other pip installed package and is left
alone by the CPython uninstaller.
2014-02-28 23:35:05 +10:00
Terry Jan Reedy
78c330d714
Merge with 3.3
2014-02-27 18:48:13 -05:00
Antoine Pitrou
b807577da2
Issue #20791 : copy.copy() now doesn't make a copy when the input is a bytes object. Initial patch by Peter Otten.
2014-02-27 22:14:31 +01:00
Benjamin Peterson
3673670b67
fix importlib test failure when bytecode writing is disabled ( closes #20796 )
...
Patch by Berker Peksag.
2014-02-27 13:49:34 -05:00
Serhiy Storchaka
517b74734a
Added tests for issue #20501 .
2014-02-26 20:59:43 +02:00
Antoine Pitrou
dc9215f882
Issue #20791 : copy.copy() now doesn't make a copy when the input is a bytes object. Initial patch by Peter Otten.
2014-02-27 22:14:31 +01:00
Benjamin Peterson
85736a7d2c
merge 3.3 ( #20796 )
2014-02-27 13:50:28 -05:00
Brett Cannon
d3acef9bf4
Issue #20763 : Fix importlib.machinery.PathFinder to support
...
PathEntryFinder instances which only define find_module().
Reported by Yukihiro Nakadaira.
2014-02-26 18:26:49 -05:00
Serhiy Storchaka
9fff849dbf
Added tests for issue #20501 .
2014-02-26 21:03:19 +02:00
Victor Stinner
658103f84e
asyncio: simplify test_events.py, don't use non local variables and don't call
...
assert methods in coroutines.
It also simplify merges from Tulip to Trollius (Python 2 does not support non
local variables).
2014-02-26 11:31:55 +01:00
Victor Stinner
f5e37037cc
asyncio: Fix pyflakes warnings: remove unused variables and imports
2014-02-26 11:07:42 +01:00
Victor Stinner
24ba203504
asyncio: Replace "unittest.mock" with "mock" in unit tests
...
Use "from unittest import mock". It should simplify my work to merge new tests
in Trollius, because Trollius uses "mock" backport for Python 2.
2014-02-26 10:25:02 +01:00
Serhiy Storchaka
94ee389308
Issue #19619 : Blacklist non-text codecs in method API
...
str.encode, bytes.decode and bytearray.decode now use an
internal API to throw LookupError for known non-text encodings,
rather than attempting the encoding or decoding operation and
then throwing a TypeError for an unexpected output type.
The latter mechanism remains in place for third party non-text
encodings.
Backported changeset d68df99d7a57.
2014-02-24 14:43:03 +02:00
Terry Jan Reedy
40f8c6774b
Merge with 3.3
2014-02-23 23:33:44 -05:00
Terry Jan Reedy
9dc3a36c84
Issue #9974 : When untokenizing, use row info to insert backslash+newline.
...
Original patches by A. Kuchling and G. Rees (#12691 ).
2014-02-23 23:33:08 -05:00
Terry Jan Reedy
9e2b14ce62
Merge with 3.3, #20750
2014-02-23 18:01:08 -05:00
Terry Jan Reedy
938ba685dc
Issue #20750 , Enable roundtrip tests for new 5-tuple untokenize. The
...
constructed examples and all but 7 of the test/test_*.py files (run with -ucpu)
pass. Remove those that fail the new test from the selection list.
Patch partly based on patches by G. Brandl (#8478 ) and G. Rees (#12691 ).
2014-02-23 18:00:31 -05:00
Antoine Pitrou
8a14ea4694
Issue #20743 : Fix a reference leak in test_tcl.
2014-02-23 19:41:51 +01:00
Antoine Pitrou
220cc21cec
Issue #20743 : Fix a reference leak in test_tcl.
2014-02-23 19:39:06 +01:00
Antoine Pitrou
f0b5a7c0f6
Issue #20637 : Key-sharing now also works for instance dictionaries of subclasses. Patch by Peter Ingebretson.
2014-02-23 16:50:07 +01:00
Georg Brandl
89e5671be7
#20719 : Disable the robotparser python.org test until the gzip encoding issue can be sorted.
2014-02-23 08:45:15 +01:00
Eric Snow
a46ef70bdf
Issue #20484 : Disable the 2 remaining "modules" tests in test_pydoc.
...
I'll look into re-enabling them in issue #20128 .
2014-02-22 13:57:08 -07:00
Yury Selivanov
a773de040d
inspect.signature: Check for function-like objects before builtins. Issue #17159
2014-02-21 18:30:53 -05:00
Victor Stinner
8c8b4e0ebf
Issue #11188 , #19748 : mktime() returns -1 on error. On Linux, the tm_wday field
...
is used as a sentinel () to detect if -1 is really an error or a valid
timestamp. On AIX, tm_wday is unchanged even on success and so cannot be used
as a sentinel.
2014-02-21 23:54:32 +01:00
Richard Oudkerk
42a526c60f
Issue #20114 : Double timeout in test_semaphore_tracker() to reduce
...
chance of sporadic failures.
2014-02-21 22:29:58 +00:00
Victor Stinner
1ac42614e3
Issue #19748 : On AIX, time.mktime() now raises an OverflowError for year
...
outsize range [1902; 2037].
2014-02-21 09:27:17 +01:00
Larry Hastings
24a882bb7b
Issue #20710 : The pydoc summary line no longer displays the "self" parameter
...
for bound methods. Previous to this change, it displayed "self" for methods
implemented in Python but not methods implemented in C; it is now both
internally consistent and consistent with inspect.Signature.
2014-02-20 23:34:46 -08:00
Yury Selivanov
8c185ee12e
inspect: Fix getfullargspec to support builtin module-level functions. Issue #20711
2014-02-21 01:32:42 -05:00
Victor Stinner
a90e8edaea
asyncio: _check_resolved_address() must also accept IPv6 without flow_info and
...
scope_id: (host, port).
2014-02-20 21:59:38 +01:00
Victor Stinner
0211ed3e89
asyncio: ops, and now fix also the unit test for IPv6 address:
...
test_sock_connect_address()
2014-02-20 17:01:11 +01:00
Benjamin Peterson
88a928b614
merge 3.3 ( #20695 )
2014-02-19 23:06:41 -05:00
Benjamin Peterson
a96fd48298
merge 3.2 ( #20695 )
2014-02-19 23:06:24 -05:00
Benjamin Peterson
1b94030b37
update logo url ( #20695 )
2014-02-19 22:55:16 -05:00
Benjamin Peterson
f6218a2191
open retrieved file in binary mode, since it's now compressed
2014-02-19 22:56:35 -05:00
Victor Stinner
7ef60cd8c2
asyncio, Tulip issue #136 : Add get/set_debug() methods to BaseEventLoopTests.
...
Add also a PYTHONASYNCIODEBUG environment variable to debug coroutines since
Python startup, to be able to debug coroutines defined directly in the asyncio
module.
2014-02-19 23:15:02 +01:00
Yury Selivanov
f4558e8b54
merge heads
2014-02-19 16:28:36 -05:00
Yury Selivanov
57d240ef64
inspect: Fix getfullargspec() to not to follow __wrapped__ chains
...
Initial patch by Nick Coghlan.
2014-02-19 16:27:23 -05:00
Serhiy Storchaka
056eb02719
Issue #20654 : Fixed pydoc for enums with zero value. Patch by Vajrasky Kok.
2014-02-19 23:05:12 +02:00
Victor Stinner
4ac30f1792
Issue #20682 : Oops, fix test_create_connection() of test_asyncio (fix my previous commit)
2014-02-19 18:32:03 +01:00
Victor Stinner
8c33ffd9b6
Close #20682 : Fix UNIX sockets tests of test_asyncio on Mac OS X Tiger
...
On Mac OS X Tiger (and older), getsockname() returns a zero-length address for
UNIX socket, and so 'sockname' extra info is None.
2014-02-19 18:10:32 +01:00
Serhiy Storchaka
d8ea31417a
Merge heads
2014-02-19 19:04:12 +02:00
Serhiy Storchaka
2bb6c358e8
Merge heads
2014-02-19 19:03:58 +02:00
Serhiy Storchaka
f6a38e11c0
Issue #20672 : Fixed tests for TarFile.list() on non-UTF-8 locales.
2014-02-19 18:50:35 +02:00
Zachary Ware
1d7ba5cd7b
Issue #20510 : Merge with 3.3
2014-02-19 10:46:05 -06:00
Zachary Ware
1f9e601765
Issue #20510 : Confirm that the code attribute of the SystemExit
...
exception raised by sys.exit is None when no code is given.
As suggested by Serhiy Storchaka.
2014-02-19 10:44:47 -06:00
Serhiy Storchaka
162c477f41
Issue #20672 : Fixed tests for TarFile.list() on non-UTF-8 locales.
2014-02-19 18:44:12 +02:00
Yury Selivanov
2d01c0a080
asyncio: WriteTransport.set_write_buffer_size to call _maybe_pause_protocol
2014-02-19 11:10:52 -05:00
Yury Selivanov
b41a42e316
asyncio: pep8-ify the code.
2014-02-18 22:56:15 -05:00
Yury Selivanov
b0b0e628ee
asyncio: Fix spelling and typos.
...
Thanks to Vajrasky Kok for discovering some of them.
2014-02-18 22:27:48 -05:00
Victor Stinner
8abac348a9
Issue #20682 : test_asyncio, _basetest_create_connection() checks also the
...
sockname, as _basetest_create_ssl_connection().
2014-02-19 02:21:08 +01:00
Victor Stinner
884e40b982
asyncio, Tulip issue 143: UNIX domain methods, fix ResourceWarning and
...
DeprecationWarning warnings. create_unix_server() closes the socket on any
error, not only on OSError.
2014-02-19 01:45:59 +01:00
Victor Stinner
065ca25aae
asyncio, Tulip issue 139: Improve error messages on "fatal errors"
...
Mention if the error was caused by a read or a write, and be more specific on
the object (ex: "pipe transport" instead of "transport").
2014-02-19 01:40:41 +01:00
Yury Selivanov
ff827f08ac
asyncio: New error handling API. Issue #20681 .
2014-02-18 18:02:19 -05:00
Ethan Furman
9a0cbcc4f8
Close issue20653: allow Enum subclasses to override __reduce_ex__
2014-02-18 12:37:12 -08:00
Yury Selivanov
34ce99f66d
Mangle __parameters in __annotations__ dict properly. Issue #20625 .
2014-02-18 12:49:41 -05:00
Yury Selivanov
88a5bf0b2e
asyncio: Add support for UNIX Domain Sockets.
2014-02-18 12:15:06 -05:00
Zachary Ware
c36e504c53
Issue #20510 : Merge with 3.3.
2014-02-18 08:41:21 -06:00
Zachary Ware
cefe6b34de
Issue #20510 : Rewrote test_exit in test_sys to match existing comments
...
and to modernize. Patch by Gareth Rees.
2014-02-18 08:39:04 -06:00
Victor Stinner
7d02d50504
Issue #20564 : Skip tests on lock+signals on OpenBSD
2014-02-18 09:19:48 +01:00
Victor Stinner
9141bff144
Issue #20667 : KqueueEventLoopTests.test_read_pty_output() hangs also on OpenBSD 5.5.
2014-02-18 09:13:47 +01:00
Terry Jan Reedy
79bf89986c
Merge with 3.3
2014-02-17 23:12:37 -05:00
Terry Jan Reedy
5b8d2c3af7
Issue #8478 : Untokenizer.compat now processes first token from iterator input.
...
Patch based on lines from Georg Brandl, Eric Snow, and Gareth Rees.
2014-02-17 23:12:16 -05:00
Victor Stinner
5afffeab73
Issue #20667 : test_asyncio: Skip KqueueEventLoopTests.test_read_pty_output() on
...
OpenBSD older than 5.5
2014-02-18 01:30:03 +01:00
Victor Stinner
740eedb826
Issue #20655 : Fix test_asyncio, run also subprocess tests. Patch written by
...
Vajrasky Kok.
2014-02-18 00:11:21 +01:00
Terry Jan Reedy
65429cf639
Merge with 3.3
2014-02-17 16:49:26 -05:00
Terry Jan Reedy
58edfd9ff1
whitespace
2014-02-17 16:49:06 -05:00
Terry Jan Reedy
8c8d77254f
Untokenize, bad assert: Merge with 3.3
2014-02-17 16:46:43 -05:00
Terry Jan Reedy
5e6db31368
Untokenize: An logically incorrect assert tested user input validity.
...
Replace it with correct logic that raises ValueError for bad input.
Issues #8478 and #12691 reported the incorrect logic.
Add an Untokenize test case and an initial test method.
2014-02-17 16:45:48 -05:00
Victor Stinner
3c1b379ebd
Issue #20320 : select.select() and select.kqueue.control() now round the timeout
...
aways from zero, instead of rounding towards zero.
It should make test_asyncio more reliable, especially test_timeout_rounding() test.
2014-02-17 00:02:43 +01:00
Victor Stinner
23f628de4a
Issue #20616 : Add a format() method to tracemalloc.Traceback.
2014-02-16 23:53:38 +01:00
Benjamin Peterson
f617fa88de
merge 3.3
2014-02-16 14:53:55 -05:00
Benjamin Peterson
cf62603276
backout fafac90b69c4
2014-02-16 14:52:01 -05:00
Benjamin Peterson
ec91cd6040
merge backout for #20621
2014-02-16 14:17:28 -05:00
Benjamin Peterson
eb43736de2
backout 2807a5f011e4 for causing #20621
2014-02-16 14:12:57 -05:00
Benjamin Peterson
e686c5c3e8
look up __getnewargs__ and __getnewargs_ex__ on the object type ( #16251 )
2014-02-16 13:49:16 -05:00
Nick Coghlan
e2df5cfcbd
Issue #19744 : Handle missing SSL/TLS in ensurepip
...
- now also allows POSIX installation with SSL/TLS missing
- a goal for pip 1.6 is to allow local use without SSL/TLS
2014-02-15 09:14:54 +10:00
Ned Deily
b7bb675d3c
Issue #20605 : Make test_socket getaddrinfo OS X segfault test more robust.
2014-02-13 22:53:42 -08:00
Ned Deily
b24f481ab4
Issue #20605 : Make test_socket getaddrinfo OS X segfault test more robust.
2014-02-13 22:50:42 -08:00
Benjamin Peterson
0714b8b6ab
set line and column numbers for keyword-only arg nodes ( closes #20619 )
2014-02-13 19:22:14 -05:00
Victor Stinner
15054c16c8
Issue #20526 , #19466 : Revert changes of issue #19466 which introduces a
...
regression: don't clear anymore the state of Python threads early during the
Python shutdown.
2014-02-13 12:48:54 +01:00
Victor Stinner
e755fba2d1
Issue #20599 : Don't clear environment in test_cleanup() of test_builtin
2014-02-13 10:54:32 +01:00
Victor Stinner
1ff0ee0be2
Fix test_asyncio/test_events.py: skip IPv6 if IPv6 is disabled on the host
2014-02-13 10:46:05 +01:00
Victor Stinner
28773465e6
ayncio, Tulip issue 129: BaseEventLoop.sock_connect() now raises an error if
...
the address is not resolved (hostname instead of an IP address) for AF_INET and
AF_INET6 address families.
2014-02-13 09:24:37 +01:00
Serhiy Storchaka
7dfaa27fdd
Issue #6815 : os.path.expandvars() now supports non-ASCII environment
...
variables names and values.
2014-02-13 10:14:48 +02:00
Serhiy Storchaka
dbb101909d
Issue #6815 : os.path.expandvars() now supports non-ASCII environment
...
variables names and values.
2014-02-13 10:13:53 +02:00
Guido van Rossum
b58f053e48
asyncio: Change as_completed() to use a Queue, to avoid O(N**2) behavior. Fixes issue #20566 .
2014-02-12 17:58:19 -08:00
Victor Stinner
8da4fb5a1c
Issue #20599 : Force ASCII encoding for stdout in test_cleanup() of test_builtin
...
On Windows, the codec of sys.stdout is implemented in Python. At exit, the
codec may be unloaded before the destructor tries to write something to
sys.stdout.
2014-02-12 18:27:55 +01:00
Serhiy Storchaka
76a6326068
Try to fix test_cleanup (issue #20599 ).
2014-02-12 12:40:22 +02:00
Serhiy Storchaka
5bdfc51950
Issue #17671 : Fixed a crash when use non-initialized io.BufferedRWPair.
...
Based on patch by Stephen Tu.
2014-02-12 10:55:07 +02:00
Serhiy Storchaka
61e2493b83
Issue #17671 : Fixed a crash when use non-initialized io.BufferedRWPair.
...
Based on patch by Stephen Tu.
2014-02-12 10:52:35 +02:00
Victor Stinner
13b493e8a7
Issue #20495 : Skip test_read_pty_output() of test_asyncio on FreeBSD older than
...
FreeBSD 8
2014-02-11 18:40:56 +01:00
Victor Stinner
eb74876e99
asyncio, Tulip issue 131: as_completed() and wait() now raises a TypeError if
...
the list of futures is not a list but a Future, Task or coroutine object
2014-02-11 11:54:08 +01:00
Victor Stinner
4e8d2f25e2
asyncio, Tulip issue 130: Add more checks on subprocess_exec/subprocess_shell
...
parameters
2014-02-11 11:44:56 +01:00
Victor Stinner
a125497ea3
asyncio, Tulip issue 126: call_soon(), call_soon_threadsafe(), call_later(),
...
call_at() and run_in_executor() now raise a TypeError if the callback is a
coroutine function.
2014-02-11 11:34:30 +01:00
Serhiy Storchaka
6a45021084
Issue #19856 : shutil.move() failed to move a directory to other directory
...
on Windows if source name ends with os.altsep.
2014-02-11 10:32:41 +02:00
Serhiy Storchaka
3a308b9f37
Issue #19856 : shutil.move() failed to move a directory to other directory
...
on Windows if source name ends with os.altsep.
2014-02-11 10:30:59 +02:00
Victor Stinner
6cf5c96630
Issue #20505 : BaseEventLoop uses again the resolution of the clock to decide if
...
scheduled tasks should be executed or not.
2014-02-10 23:42:32 +01:00
Georg Brandl
d8413bab22
merge with 3.3
2014-02-10 22:11:21 +01:00
Georg Brandl
8f9c20b8ff
merge with 3.3.4 releasing repo
2014-02-10 22:04:20 +01:00
Victor Stinner
cf736f4e98
Issue #20505 : Use even shorter sleep in test_timeout_rounding() to make the
...
test more reliable (= fail more often on Windows with HPET enabled).
2014-02-10 19:17:46 +01:00
Serhiy Storchaka
d667d72cb7
Temporary silence test broken by issue19255.
...
Remove unused variables.
2014-02-10 19:09:19 +02:00
Serhiy Storchaka
87a5c515d0
Issue #19255 : The builtins module is restored to initial value before
...
cleaning other modules. The sys and builtins modules are cleaned last.
2014-02-10 18:21:34 +02:00
Victor Stinner
1c143b19c8
Issue #20505 : Add debug info to analyze sporaric failures of
...
test_timeout_rounding() on Windows XP buildbots.
2014-02-10 11:47:50 +01:00
Larry Hastings
b082731fbb
Issue #20517 : Functions in the os module that accept two filenames
...
now register both filenames in the exception on failure.
This required adding new C API functions allowing OSError exceptions
to reference two filenames instead of one.
2014-02-09 22:05:19 -08:00
Victor Stinner
dc62b7e261
asyncio: Tulip issue 112: Inline make_handle() into Handle constructor
2014-02-10 00:45:44 +01:00
Victor Stinner
1be39e5154
Issue #20571 : skip test_readline() of test_codecs for Windows code page 65001.
...
The decoder does not support partial decoding yet for this code page.
2014-02-09 13:11:53 +01:00
Victor Stinner
3633ce3301
Issue #20571 : skip test_readline() of test_codecs for Windows code page 65001.
...
The decoder does not support partial decoding yet for this code page.
2014-02-09 13:11:53 +01:00
Larry Hastings
2623c8c23c
Issue #20530 : Argument Clinic's signature format has been revised again.
...
The new syntax is highly human readable while still preventing false
positives. The syntax also extends Python syntax to denote "self" and
positional-only parameters, allowing inspect.Signature objects to be
totally accurate for all supported builtins in Python 3.4.
2014-02-08 22:15:29 -08:00
Victor Stinner
0c3949c963
asyncio: Remove Process.subprocess attribute; it's too easy to get inconsistent
...
Process and Popen objects
2014-02-09 02:51:40 +01:00
Guido van Rossum
313f829ce8
asyncio: Test fix.
2014-02-08 17:35:09 -08:00
Nick Coghlan
d979e4335d
Close #20500 : Don't trigger PyObject_Str assertion at shutdown
2014-02-09 10:43:21 +10:00
Victor Stinner
87bf2772be
asyncio tests: Remove scories of resolution/granularity
2014-02-09 01:25:52 +01:00
R David Murray
66c3d18af1
Merge: #14983 : always add a line end after a MIME boundary marker.
2014-02-08 17:56:17 -05:00
R David Murray
e9c31470e1
#14983 : always add a line end after a MIME boundary marker.
...
This is more RFC compliant (see issue) and fixes a problem with
signature verifiers rejecting the part when signed. There is some
amount of backward compatibility concern here since it changes
the output, but the RFC issue coupled with fixing the problem
with signature verifiers seems worth the small risk of breaking
code that depends on the current incorrect output.
2014-02-08 17:54:56 -05:00
Ethan Furman
ca1b794dac
Close issue20534: all pickle protocols now supported.
2014-02-08 11:36:27 -08:00
R David Murray
01e46ee7e2
Merge: #16983 : Apply postel's law to encoded words inside quoted strings.
2014-02-08 13:13:01 -05:00
R David Murray
0400d33928
#16983 : Apply postel's law to encoded words inside quoted strings.
...
This applies only to the new parser. The old parser decodes encoded words
inside quoted strings already, although it gets the whitespace wrong
when it does so.
This version of the patch only handles the most common case (a single encoded
word surrounded by quotes), but I haven't seen any other variations of this in
the wild yet, so its good enough for now.
2014-02-08 13:12:00 -05:00
R David Murray
ff9616bbf7
Merge #19772 : Do not mutate message when downcoding to 7bit.
2014-02-08 11:51:18 -05:00
R David Murray
905c8c3d8d
#19772 : Do not mutate message when downcoding to 7bit.
...
This is a bit of an ugly hack because of the way generator pieces together the
output message. The deepcopys aren't too expensive, though, because we know it
is only called on messages that are not multiparts, and the payload (the thing
that could be large) is an immutable object.
Test and preliminary work on patch by Vajrasky Kok.
2014-02-08 11:48:20 -05:00
Serhiy Storchaka
99b1f2b3bb
Issue #20553 . Use specific asserts in ipaddress tests.
2014-02-08 16:39:51 +02:00
Serhiy Storchaka
7c389e2404
Issue #20553 . Use specific asserts in ipaddress tests.
2014-02-08 16:38:35 +02:00
Nick Coghlan
4a7668adca
Close #20536 : correctly handle Decimal exponents in statistics
2014-02-08 23:55:14 +10:00
Nick Coghlan
aad0ea0b59
Merge fix for #18805 from 3.3
2014-02-08 23:20:58 +10:00
Nick Coghlan
932346f572
Issue #18805 : better netmask validation in ipaddress
2014-02-08 23:17:36 +10:00
Serhiy Storchaka
1ff23d7542
Issue #20549 : Use specific asserts in mailbox, smtplib and poplib tests.
2014-02-08 15:06:43 +02:00
Serhiy Storchaka
578c6777aa
Issue #20549 : Use specific asserts in mailbox, smtplib and poplib tests.
2014-02-08 15:06:08 +02:00
Serhiy Storchaka
d3e1207191
Issue #20555 : Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref tests.
2014-02-08 14:51:10 +02:00
Serhiy Storchaka
25d8aeac7c
Issue #20555 : Use specific asserts in urllib, httplib, ftplib, cgi, wsgiref tests.
2014-02-08 14:50:08 +02:00
Serhiy Storchaka
6c9678e1a5
Issue #20546 : Use specific asserts in int tests.
2014-02-08 14:29:36 +02:00
Serhiy Storchaka
3a20a5dead
Issue #20546 : Use specific asserts in int tests.
2014-02-08 14:28:33 +02:00
Serhiy Storchaka
6cbf151032
Issue #20538 : UTF-7 incremental decoder produced inconsistant string when
...
input was truncated in BASE64 section.
2014-02-08 14:06:33 +02:00
Serhiy Storchaka
016a3f33a5
Issue #20538 : UTF-7 incremental decoder produced inconsistant string when
...
input was truncated in BASE64 section.
2014-02-08 14:01:29 +02:00
Nick Coghlan
73afe2a972
Close #20481 : Disallow mixed type input in statistics
...
The most appropriate coercion rules are not yet clear, so simply
disallowing mixed type input for 3.4.
(Committed on Steven's behalf)
2014-02-08 19:58:04 +10:00
Nick Coghlan
bfd68bf4ac
Issue #20478 : avoid special casing Counter in statistics
...
Passing Counter objects to the Counter constructor is
special cased, going through iter() firsts ensures they
are handled the same way as any other iterable.
(Committing on Steven's behalf as I don't believe his
SSH key is registered yet)
2014-02-08 19:44:16 +10:00
Victor Stinner
85310a50a9
Issue #20505 : Remove resolution and _granularity from selectors and asyncio
...
* Remove selectors.BaseSelector.resolution attribute
* Remove asyncio.BaseEventLoop._granularity attribute
2014-02-07 23:34:58 +01:00
R David Murray
c489e83432
Merge: #17369 : Improve handling of broken RFC2231 values in get_filename.
2014-02-07 15:04:26 -05:00
R David Murray
1e949890f6
#17369 : Improve handling of broken RFC2231 values in get_filename.
...
This fixes a regression relative to python2.
2014-02-07 15:02:19 -05:00
R David Murray
15a693a6f8
#20531 : Apply the 3.3 version of the #19063 fix.
...
So passing unicode to set_payload works again (but still doesn't
do what you want when the message is serialized).
2014-02-07 12:46:17 -05:00
R David Murray
27e9de669b
#20531 : Revert e20f98a8ed71, the 3.4 version of the #19063 fix.
2014-02-07 12:40:37 -05:00
R David Murray
aa21297457
#20476 : use EmailMessage as factory if non-compat32 policy is used.
...
In 3.5 I will fix this right by adding a message_factory attribute
to the policy.
2014-02-07 10:44:16 -05:00
Nick Coghlan
11c5afd138
Issue #20053 : Mark as an expected failure for 3.4
2014-02-07 23:46:38 +10:00
Nick Coghlan
96252cd724
Issue 20542: Temporarily skip failing test
2014-02-07 23:34:41 +10:00
Nick Coghlan
d49fa5eb11
Issue #20053 : Actually test relevant assumption
2014-02-07 22:28:18 +10:00
Serhiy Storchaka
f28ba369dd
Issue #20532 : Tests which use _testcapi now are marked as CPython only.
2014-02-07 10:10:55 +02:00
Serhiy Storchaka
5cfc79deae
Issue #20532 : Tests which use _testcapi now are marked as CPython only.
2014-02-07 10:06:39 +02:00
Yury Selivanov
622be340fd
asyncio.tasks: Fix as_completed, gather & wait to work with duplicate coroutines
2014-02-06 22:06:16 -05:00
Ethan Furman
2ddb39a695
Close issue20534: test_enum now tests all supported pickle protocols (2 - HIGHEST_PROTOCOL, inclusive).
2014-02-06 17:28:50 -08:00
Serhiy Storchaka
fe4ef392d5
Silence BytesWarning (backport 267a4d4d9d65).
2014-02-07 00:26:57 +02:00
Serhiy Storchaka
a26b3f183d
Issue #20363 . Fixed BytesWarning triggerred by test suite.
...
Patch by Berker Peksag.
2014-02-06 22:52:23 +02:00
Serhiy Storchaka
bc27a050a7
Issue #20363 . Fixed BytesWarning triggerred by test suite.
...
Patch by Berker Peksag.
2014-02-06 22:49:45 +02:00
Serhiy Storchaka
a146bef02b
Catch deprecation warnings emitted when non-integers are formatted with %c, %o
...
and %x (introduced in issue #19995 ).
2014-02-06 22:44:27 +02:00
Ronald Oussoren
94e44a935b
Issue #14455 : fix handling of unsigned long long values for binary plist files
...
Values in the range of an unsigned long long, but outside of the range
of a signed long long were serialized as a negative value.
Due to a bug in PyObjC my test scripts indicated that the previous behavior
matched Apple's plist code, instead the handle large unsigned values correctly.
The change to plistlib.py is from a patch by Serhiy.
2014-02-06 11:19:18 +01:00
Serhiy Storchaka
3dcb0cf9b1
Issue #20520 : Fixed readline test in test_codecs.
2014-02-06 09:27:28 +02:00
Serhiy Storchaka
5b4fab1ad7
Issue #20520 : Fixed readline test in test_codecs.
2014-02-06 09:26:56 +02:00
Yury Selivanov
f0020f5d77
asyncio.streams.StreamReader: Add 'at_eof()' method
2014-02-06 00:14:30 -05:00
Yury Selivanov
e694c9745f
asyncio.streams: Use bytebuffer in StreamReader; Add assertion in feed_data
2014-02-05 18:11:13 -05:00
Serhiy Storchaka
255493c813
Issue #19920 : TarFile.list() no longer fails when outputs a listing
...
containing non-encodable characters. Added tests for TarFile.list().
Based on patch by Vajrasky Kok.
2014-02-05 20:54:43 +02:00
Serhiy Storchaka
3b4f1594ff
Issue #19920 : TarFile.list() no longer fails when outputs a listing
...
containing non-encodable characters. Added tests for TarFile.list().
Based on patch by Vajrasky Kok.
2014-02-05 20:53:36 +02:00
Eric V. Smith
4d5d69d452
TestNamedTuple.test_pickle was only testing through protocol 2. Changed to have it automatically test through the most recent version.
2014-02-05 10:33:14 -05:00
Nick Coghlan
456ab5d909
Issue #20053 : new test to check an assumption
2014-02-05 23:54:55 +10:00
Serhiy Storchaka
780145daac
Issue #20498 : Fixed io.StringIO tests for newline='\n'. Added new tests.
2014-02-05 13:42:29 +02:00
Serhiy Storchaka
1812bd44d5
Issue #20498 : Fixed io.StringIO tests for newline='\n'. Added new tests.
2014-02-05 13:42:01 +02:00
Guido van Rossum
3b55f0c622
asyncio: Cosmetic improvement to test__run_once_logging() mock argument.
2014-02-04 14:27:14 -08:00
Nick Coghlan
6edd82a1d2
Close #20053 : ignore default pip config settings
...
ensurepip now sets PIP_CONFIG_FILE to os.devnull before
import pip from the wheel file. This also ensures venv
ignores the default settings when bootstrapping pip.
2014-02-04 23:02:36 +10:00
Nick Coghlan
a9b15241c6
Close #20404 : blacklist non-text encodings in io.TextIOWrapper
...
- io.TextIOWrapper (and hence the open() builtin) now use the
internal codec marking system added for issue #19619
- also tweaked the C code to only look up the encoding once,
rather than multiple times
- the existing output type checks remain in place to deal with
unmarked third party codecs.
2014-02-04 22:11:18 +10:00
Victor Stinner
1703bbbf89
Oops, undo unwanted changes in test_asyncio: mistakes of my the last sync with
...
Tulip (changeset d7ac90c0463a)
2014-02-03 23:59:52 +01:00
Victor Stinner
b79eb0502c
asyncio.subprocess: Replace Process.get_subprocess() method with a
...
Process.subprocess read-only property
2014-02-03 23:08:14 +01:00
Ned Deily
cb306d1b59
Issue #20474 : Fix "unexpected success" test_socket failures on OS X 10.7+.
2014-02-03 14:02:26 -08:00
Ned Deily
c564038580
Issue #20474 : Fix "unexpected success" test_socket failures on OS X 10.7+.
2014-02-03 13:58:31 -08:00
Serhiy Storchaka
08df2959c8
Skip expr* tests for large integers for Tcl <8.5.
...
The '**' operator is available only since 8.5 and in any case such large
integers are not supported on Tcl <8.5.
2014-02-03 22:32:00 +02:00
Serhiy Storchaka
160f8924ac
Skip expr* tests for large integers for Tcl <8.5.
...
The '**' operator is available only since 8.5 and in any case such large
integers are not supported on Tcl <8.5.
2014-02-03 22:31:09 +02:00
Antoine Pitrou
c49672f25e
Issue #20426 : When passing the re.DEBUG flag, re.compile() displays the debug output every time it is called, regardless of the compilation cache.
2014-02-03 21:01:35 +01:00
Antoine Pitrou
d2cc743ca4
Issue #20426 : When passing the re.DEBUG flag, re.compile() displays the debug output every time it is called, regardless of the compilation cache.
2014-02-03 20:59:59 +01:00
Serhiy Storchaka
ce591c2868
Issue #20368 : The null character now correctly passed from Tcl to Python.
...
Improved error handling in variables-related commands.
2014-02-03 21:25:56 +02:00
Serhiy Storchaka
1317e14468
Issue #20368 : The null character now correctly passed from Tcl to Python.
...
Improved error handling in variables-related commands.
2014-02-03 21:24:07 +02:00
Serhiy Storchaka
1b7c931e0b
Issue #20368 : Add tests for Tkinter methods exprstring(), exprdouble(),
...
exprlong() and exprboolean().
2014-02-03 20:46:14 +02:00
Serhiy Storchaka
fc055252eb
Issue #20368 : Add tests for Tkinter methods exprstring(), exprdouble(),
...
exprlong() and exprboolean().
2014-02-03 20:41:34 +02:00