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
Yury Selivanov
7d2bfed7a2
inspect.signature: Add (restore) support for builtin classes #20473
2014-02-03 02:46:07 -05:00
Victor Stinner
9dd39f524d
Issue #20472 : test_asyncio: skip PTY tests on Mac OS X older than 10.6
2014-02-03 00:32:13 +01:00
Antoine Pitrou
1328e9d0a0
Issue #20435 : Fix _pyio.StringIO.getvalue() to take into account newline translation settings.
2014-02-02 23:38:48 +01:00
Antoine Pitrou
57839a6349
Issue #20435 : Fix _pyio.StringIO.getvalue() to take into account newline translation settings.
2014-02-02 23:37:29 +01:00
Serhiy Storchaka
9a3424b72e
Issue #19320 : Fixed split/splitlist tests in test_tcl for Tcl 8.5.0-8.5.5.
2014-02-02 23:05:10 +02:00
Serhiy Storchaka
92af06bb5a
Issue #19320 : Fixed split/splitlist tests in test_tcl for Tcl 8.5.0-8.5.5.
2014-02-02 23:04:24 +02:00
Victor Stinner
915bcb0111
Issue #20400 : Merge Tulip into Python: add the new asyncio.subprocess module
...
* Add a new asyncio.subprocess module
* Add new create_subprocess_exec() and create_subprocess_shell() functions
* The new asyncio.subprocess.SubprocessStreamProtocol creates stream readers
for stdout and stderr and a stream writer for stdin.
* The new asyncio.subprocess.Process class offers an API close to the
subprocess.Popen class:
- pid, returncode, stdin, stdout and stderr attributes
- communicate(), wait(), send_signal(), terminate() and kill() methods
* Remove STDIN (0), STDOUT (1) and STDERR (2) constants from base_subprocess
and unix_events, to not be confused with the symbols with the same name of
subprocess and asyncio.subprocess modules
* _ProactorBasePipeTransport.get_write_buffer_size() now counts also the size
of the pending write
* _ProactorBaseWritePipeTransport._loop_writing() may now pause the protocol if
the write buffer size is greater than the high water mark (64 KB by default)
2014-02-01 22:49:59 +01:00
Ezio Melotti
153d97b24e
#20288 : merge with 3.3.
2014-02-01 21:22:26 +02:00
Ezio Melotti
f27b9a741a
#20288 : fix handling of invalid numeric charrefs in HTMLParser.
2014-02-01 21:21:01 +02:00
Yury Selivanov
145dff8567
inspect.tests: Fix tests to work on python built with '--without-doc-strings' #20471
2014-02-01 13:49:29 -05:00
Victor Stinner
04edd2eb7f
Fix test_hash on "SPARC Solaris 10 (cc%2C 64b) [SB] 3.x" buildbot
...
I picked the value from the error message:
======================================================================
FAIL: test_ucs2_string (test.test_hash.StrHashRandomizationTests)
----------------------------------------------------------------------
Traceback (most recent call last):
File "/home/cpython/buildslave/cc-64/3.x.snakebite-sol10-sparc-cc-64/build/Lib/test/test_hash.py", line 292, in test_ucs2_string
self.assertEqual(self.get_hash(self.repr_ucs2, seed=42), h)
AssertionError: -3927695501187247084 != None
2014-02-01 04:30:48 +01:00
Victor Stinner
0f54db3a85
test_hash: Fix a BytesWarning in get_hash_command()
2014-02-01 04:26:46 +01:00
Victor Stinner
a0aa88ce89
test_asyncio: relax timing, the "AMD64 Windows Server 2008 [SB] 3.x" buildbot
...
looks to be slow
2014-02-01 04:11:16 +01:00
Victor Stinner
524be3056e
tracemalloc: Fix slicing traces and fix slicing a traceback.
2014-02-01 04:07:02 +01:00
Victor Stinner
55effc6dd0
Issue #20452 : Fix test_time_and_call_at() of test_asyncio on Windows
...
Use the granularity to check the minimum time delta, instead of arbitrary
value.
2014-02-01 02:18:52 +01:00
Victor Stinner
1144214639
Issue #20452 : test_asyncio checks also the granularity
2014-02-01 02:17:54 +01:00
Yury Selivanov
63da7c7b0c
inspect.signature: Support duck-types of Python functions (Cython, for instance) #17159
2014-01-31 14:48:37 -05:00
Yury Selivanov
0860a0bd3f
inspect.classify_class_attrs: Classify object.__new__ and __init__ correctly #18801
2014-01-31 14:28:44 -05:00
Victor Stinner
62510dced9
Issue #20452 : test_asyncio: Add more info if the test fails
2014-01-31 16:39:10 +01:00
Victor Stinner
1506df2655
Issue #20455 : Add a resolution attribute to IocpProactor (1 ms)
2014-01-31 16:26:38 +01:00
Victor Stinner
49d0f4e428
Issue #20452 : Remove debug code, no more needed
2014-01-31 12:59:43 +01:00
Victor Stinner
dcd9740ad2
Issue #20452 : select and selectors round (again) timeout away from zero for
...
poll and epoll
Improve also debug info to analyze the issue
2014-01-31 12:12:53 +01:00
Victor Stinner
31f65044a9
Issue #20452 : Oops, fix debug code :-/
...
Add also event more debug info
2014-01-31 10:55:55 +01:00
Victor Stinner
0278032110
Issue #20452 : add more info in case of test_asyncio failure to try to debug the
...
failure on buildbot "x86 Ubuntu Shared 3.x"
2014-01-31 09:29:35 +01:00
Guido van Rossum
a849be9c64
asyncio: Fix misc whitespace issues.
2014-01-30 16:05:28 -08:00
Victor Stinner
9572898282
asyncio: Future.set_exception(exc) should instantiate exc if it is a class.
2014-01-30 16:01:54 -08:00
Antoine Pitrou
0e5b2412c2
Issue #20373 : generalize use of test.script_helper in test_warnings. Patch by Arfrever.
2014-01-29 23:45:07 +01:00
Antoine Pitrou
bb08b365c0
Issue #20373 : generalize use of test.script_helper in test_warnings. Patch by Arfrever.
2014-01-29 23:44:05 +01:00
Victor Stinner
e623a12297
asyncio: subprocess_shell() and subprocess_exec() now raise ValueError instead of assert.
...
Moreover, bufsize different than 0 is now considered as an error.
2014-01-29 14:35:15 -08:00
Guido van Rossum
48c66c3dd8
asyncio: wait_for() now accepts None as timeout (Victor Stinner).
2014-01-29 14:30:38 -08:00
Yury Selivanov
0486f819c9
inspect.signature: Make sure that if a callable object has '_patialmethod'
...
attribute, that attribute is an instance of 'functools.partialmethod'.
2014-01-29 12:18:59 -05:00
Yury Selivanov
4cb939174c
inspect.test.getfullargspec: Add a unittest to ensure correct annotations
...
handling #17481
2014-01-29 11:54:12 -05:00
Yury Selivanov
d82eddcf05
inspect.getfullargspec: Use inspect.signature API behind the scenes #17481
2014-01-29 11:24:39 -05:00
Yury Selivanov
07a9e452ac
inspect.Signature: ensure that non-default params don't follow default ones #20427
2014-01-29 10:58:16 -05:00
Yury Selivanov
76c6c593ed
inspect.signature: Add support for decorated (wrapped) builtins #20425
2014-01-29 10:52:57 -05:00
Yury Selivanov
b77511da92
inspect.Signature: Make from_builtin to raise an exception if no signature can
...
be provided #20422
2014-01-29 10:46:14 -05:00
Serhiy Storchaka
9f2e46de34
Issue #20424 : Python implementation of io.StringIO now supports lone surrogates.
2014-01-29 11:45:31 +02:00
Serhiy Storchaka
c92ea76f3f
Issue #20424 : Python implementation of io.StringIO now supports lone surrogates.
2014-01-29 11:33:26 +02:00
Yury Selivanov
38b0d5a778
inspect.Signature.bind: Fix pos-only params with defaults; fix *args in named args #19140
...
Initial patch by Yann Kaiser (epsy).
2014-01-28 17:27:39 -05:00
Yury Selivanov
62560fb19a
inspect.signature: Handle bound methods with '(*args)' signature correctly #20401
2014-01-28 12:26:24 -05:00
Yury Selivanov
d65bc70db0
inspect.tests: Remove redundant unittest
...
The removed unittest duplicates the other one (test_signature_on_builtins_no_signature)
2014-01-28 12:19:52 -05:00
Larry Hastings
581ee3618c
Issue #20326 : Argument Clinic now uses a simple, unique signature to
...
annotate text signatures in docstrings, resulting in fewer false
positives. "self" parameters are also explicitly marked, allowing
inspect.Signature() to authoritatively detect (and skip) said parameters.
Issue #20326 : Argument Clinic now generates separate checksums for the
input and output sections of the block, allowing external tools to verify
that the input has not changed (and thus the output is not out-of-date).
2014-01-28 05:00:08 -08:00
Yury Selivanov
e7dcc5e97a
inspect.signature: Support classes without user-defined __init__/__new__ #20308
2014-01-27 19:29:45 -05:00
Yury Selivanov
da5fe4f2da
inspect.signature: Add support for 'functools.partialmethod' #20223
2014-01-27 17:28:37 -05:00
Serhiy Storchaka
f5d2f22475
Issue #19456 : ntpath.join() now joins relative paths correctly when a drive
...
is present.
2014-01-27 23:16:28 +02:00
Serhiy Storchaka
c369c2c688
Issue #19456 : ntpath.join() now joins relative paths correctly when a drive
...
is present.
2014-01-27 23:15:14 +02:00
Yury Selivanov
2393dca472
inspect.signature: Use '/' to separate positional-only parameters from
...
the rest in Signature.__str__. #20356
2014-01-27 15:07:58 -05:00
Yury Selivanov
2eed8b7da0
inspect.getfile: Don't crash on classes without '__module__' attribute #20372
...
Some classes defined in C may not have the '__module__' attribute, so
we now handle this case to avoid having unexepected AttributeError.
2014-01-27 13:24:56 -05:00
Serhiy Storchaka
a28632be56
Issue #19077 : tempfile.TemporaryDirectory cleanup no longer fails when
...
called during shutdown. Emitting resource warning in __del__ no longer fails.
Original patch by Antoine Pitrou.
2014-01-27 11:21:54 +02:00
Serhiy Storchaka
99e033b02e
Issue #19077 : tempfile.TemporaryDirectory cleanup is now most likely
...
successful when called during nulling out of modules during shutdown.
Misleading exception no longer raised when resource warning is emitted
during shutdown.
2014-01-27 11:18:27 +02:00
Victor Stinner
b9915973f3
Issue #20367 : Fix behavior of concurrent.futures.as_completed() for duplicate
...
arguments. Patch by Glenn Langford.
2014-01-27 09:11:48 +01:00
Serhiy Storchaka
62a85b54a3
Issue #19990 : Added tests for the imghdr module.
...
Based on patch by Claudiu Popa.
2014-01-26 23:52:57 +02:00
Serhiy Storchaka
1ac00950b2
Issue #19990 : Added tests for the imghdr module.
...
Based on patch by Claudiu Popa.
2014-01-26 23:48:38 +02:00
Guido van Rossum
e6994ff6e3
Fix issue #20367 : concurrent.futures.as_completed() for duplicate arguments.
...
Patch by Glenn Langford.
2014-01-26 09:57:51 -08:00
Serhiy Storchaka
dbe0982bc5
Issue #8260 : The read(), readline() and readlines() methods of
...
codecs.StreamReader returned incomplete data when were called after
readline() or read(size). Based on patch by Amaury Forgeot d'Arc.
2014-01-26 19:27:56 +02:00
Serhiy Storchaka
8003850e22
Issue #8260 : The read(), readline() and readlines() methods of
...
codecs.StreamReader returned incomplete data when were called after
readline() or read(size). Based on patch by Amaury Forgeot d'Arc.
2014-01-26 19:21:00 +02:00
Nick Coghlan
77b286b2cc
Close #20105 : set __traceback__ when chaining exceptions in C
2014-01-27 00:53:38 +10:00
Larry Hastings
23e37aa7b7
Issue #20358 : Tests for curses.window.overlay and curses.window.overwrite
...
no longer specify min{row,col} > max{row,col}.
2014-01-25 22:19:47 -08:00
Guido van Rossum
fef7098ef9
asyncio: Rename {Empty,Full} to {QueueEmpty,QueueFull} and no longer get them from queue.py.
2014-01-25 17:24:51 -08:00
Guido van Rossum
ab3c88983b
asyncio: Locks refactor: use a separate context manager; remove Semaphore._locked.
2014-01-25 16:51:57 -08:00
Victor Stinner
669eeaf933
Merge latest Tulip into asyncio
...
- Make the new granularity attribute private
- Simplify BaseEventLoop._run_once(): avoid math.ceil(), use simple arithmetic
instead
2014-01-26 00:02:31 +01:00
Victor Stinner
3c2f175ec4
Issue #20311 : Fix test_telnetlib, set the resolution of the MockSelector
2014-01-25 23:53:28 +01:00
Eric Snow
6029e08691
Issue 19944: Fix importlib.find_spec() so it imports parents as needed.
...
The function is also moved to importlib.util.
2014-01-25 15:32:46 -07:00
Victor Stinner
128ee220e2
asyncio: Don't export BaseEventLoop, BaseSelectorEventLoop nor
...
BaseProactorEventLoop
Import them from submodules if you really need them.
2014-01-25 22:22:18 +01:00
Victor Stinner
8dffc456d7
Update asyncio from the Tulip project
...
Major changes:
- StreamReader.readexactly() now raises an IncompleteReadError if the
end of stream is reached before we received enough bytes, instead of
returning less bytes than requested.
- Unit tests use the main asyncio module instead of submodules like events
- _UnixWritePipeTransport now also supports character devices, as
_UnixReadPipeTransport. Patch written by Jonathan Slenders.
- Export more symbols: BaseEventLoop, BaseProactorEventLoop,
BaseSelectorEventLoop, Queue and Queue sublasses, Empty, Full
2014-01-25 15:32:06 +01:00
Victor Stinner
6b0fa70547
test_selectors: remove unused imports
2014-01-25 15:04:22 +01:00
Victor Stinner
f67255ab94
Issue #20311 : asyncio: Add a granularity attribute to BaseEventLoop: maximum
...
between the resolution of the BaseEventLoop.time() method and the resolution of
the selector. The granuarility is used in the scheduler to round time and
deadline.
2014-01-25 15:01:33 +01:00
Victor Stinner
635fca9704
Issue #20311 : selectors: Add a resolution attribute to BaseSelector.
2014-01-25 14:56:48 +01:00
Victor Stinner
2041859f27
Issue #20311 : Revert e042ea77a152 and 7ce7295393c2, PollSelector.select() and
...
EpollSelector.select() round again the timeout towards zero
2014-01-25 14:43:45 +01:00
Victor Stinner
38c72bd199
(Merge 3.3) Issue #20311 : Revert 033137c12d88 (02f9db3e684e),
...
select.epoll.poll() rounds again the timeout towards zero
2014-01-25 14:40:04 +01:00
Victor Stinner
933209689e
Issue #20311 : Revert 033137c12d88, select.epoll.poll() rounds again the timeout
...
towards zero
2014-01-25 14:37:50 +01:00
Georg Brandl
381c280815
#20311 : revert changes to 3.3 branch for now until experts have decided how to resolve the issue.
2014-01-25 09:11:13 +01:00
Georg Brandl
c11435399e
#16042 : CVE-2013-1752: smtplib fix for unlimited readline() from socket
2014-01-25 09:02:18 +01:00
Serhiy Storchaka
a7184e617a
Fix typo.
2014-01-24 22:28:06 +02:00
Serhiy Storchaka
2d5a0928f1
Issue #20384 : Fix the test_tarfile test on Windows.
...
On Windows os.open() error message doesn't contain file name.
2014-01-24 22:19:23 +02:00
Larry Hastings
5c66189e88
Issue #20189 : Four additional builtin types (PyTypeObject,
...
PyMethodDescr_Type, _PyMethodWrapper_Type, and PyWrapperDescr_Type)
have been modified to provide introspection information for builtins.
Also: many additional Lib, test suite, and Argument Clinic fixes.
2014-01-24 06:17:25 -08:00
Nick Coghlan
b3c0f4067d
Merge removal of issue 20317 debugging code from 3.3
2014-01-24 23:07:16 +10:00
Nick Coghlan
add94c9d82
Issue 20317: Remove debugging code from contextlib
...
- Alex J Burke noticed a debugging raise in the commit that
fixed the original bug reported in issue 20317
- this showed that multiple iterations through the affected
loop wasn't actually being tested
2014-01-24 23:05:45 +10:00
Victor Stinner
421e49b5c1
asyncio: wait_for() now cancels the future on timeout. Patch written by Gustavo
...
Carneiro.
2014-01-23 17:40:59 +01:00
Victor Stinner
8ce6e1100e
Close #20365 : Skip test_asyncio.test_events.test_read_pty_output() on Mac OS X
...
older than 10.9 (Maverick). kqueue doesn't support character devices (PTY) on
Mac OS X older than 10.9.
2014-01-23 17:26:06 +01:00
Serhiy Storchaka
418e80ba00
Fixed test_user_command on OpenSolaris where floats can have different string
...
representation in Tcl and Python.
2014-01-23 16:49:22 +02:00
Serhiy Storchaka
bdf0cb52eb
Fixed test_user_command on OpenSolaris where floats can have different string
...
representation in Tcl and Python.
2014-01-23 16:48:44 +02:00
Victor Stinner
da94b9ebeb
Issue #20311 : add debug help in test_selectors
2014-01-23 15:07:26 +01:00
Serhiy Storchaka
d869a0b132
Added test_user_command in test_tcl.
...
It tests the convertion Tcl values to Python values when Tcl calls a command
implemented on Python. Currently all values are passed as strings.
2014-01-23 09:49:42 +02:00
Serhiy Storchaka
4b730161fd
Added test_user_command in test_tcl.
...
It tests the convertion Tcl values to Python values when Tcl calls a command
implemented on Python. Currently all values are passed as strings.
2014-01-23 09:44:05 +02:00
Nick Coghlan
d58831e688
Merge #20317 from 3.3
2014-01-22 23:04:37 +10:00
Nick Coghlan
09761e7c9c
Issue #20317 : Don't create a reference loop in ExitStack
2014-01-22 22:24:46 +10:00
Florent Xicluna
45e124e26d
Issue #17825 : Cursor ^ is correctly positioned for SyntaxError and IndentationError.
2014-01-22 01:16:25 +01:00
Florent Xicluna
758fa5ea81
Issue #17825 : Cursor ^ is correctly positioned for SyntaxError and IndentationError.
2014-01-22 01:11:43 +01:00
Stefan Krah
b772f2e89d
Issue #20246 : Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
2014-01-21 22:59:57 +01:00
Stefan Krah
d9bed99fcb
Issue #20246 : Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
2014-01-21 22:58:40 +01:00
Stefan Krah
6b2e5597e1
Issue #20246 : Fix test failures on FreeBSD. Patch by Ryan Smith-Roberts.
2014-01-21 22:58:40 +01:00
Serhiy Storchaka
2bd59daf58
Issue #2382 : SyntaxError cursor "^" now is written at correct position in most
...
cases when multibyte characters are in line (before "^"). This still not
works correctly with wide East Asian characters.
2014-01-21 22:29:47 +02:00
Serhiy Storchaka
65fd0592fb
Issue #2382 : SyntaxError cursor "^" now is written at correct position in most
...
cases when multibyte characters are in line (before "^"). This still not
works correctly with wide East Asian characters.
2014-01-21 22:26:52 +02:00
Victor Stinner
240cae7d17
(Merge 3.3) Issue #20311 : Try to fix the unit test, use time.monotonic()
...
instead of time.perf_counter()
2014-01-21 02:38:33 +01:00
Victor Stinner
39d798eb03
Issue #20311 : Try to fix the unit test, use time.monotonic() instead of
...
time.perf_counter()
Move also the unit test at the end.
2014-01-21 02:37:41 +01:00
Victor Stinner
11da8e24ba
Issue #20311 : selector.PollSelector.select() now rounds the timeout away from
...
zero, instead of rounding towards zero. For example, a timeout of one
microsecond is now rounded to one millisecond, instead of being rounded to
zero.
Move also a test in test_epoll which was moved by my previous merge.
2014-01-21 01:48:28 +01:00
Victor Stinner
09354fd606
(Merge 3.3) Issue #20311 : select.epoll.poll() now rounds the timeout away from
...
zero, instead of rounding towards zero. For example, a timeout of one
microsecond is now rounded to one millisecond, instead of being rounded to
zero.
2014-01-21 01:42:11 +01:00
Victor Stinner
665486e0e7
Issue #20311 : select.epoll.poll() now rounds the timeout away from zero,
...
instead of rounding towards zero. For example, a timeout of one microsecond is
now rounded to one millisecond, instead of being rounded to zero.
2014-01-21 01:41:00 +01:00
Serhiy Storchaka
c46d1faa4a
Issue #20262 : Warnings are raised now when duplicate names are added in the
...
ZIP file or too long ZIP file comment is truncated.
2014-01-20 21:59:33 +02:00
Serhiy Storchaka
9b7a1a1af6
Issue #20262 : Warnings are raised now when duplicate names are added in the
...
ZIP file or too long ZIP file comment is truncated.
2014-01-20 21:57:40 +02:00
Serhiy Storchaka
ab0ac27d24
Issue #20315 : Removed support for backward compatibility with early 2.x versions.
...
Removed backward compatibility alias curses.window.nooutrefresh which should
be removed in 2.3.
2014-01-20 21:35:06 +02:00
Gregory P. Smith
b599c61179
Fix the unittest to run properly when the working directory has
...
additional bits set (such as the setgid or sticky bits).
2014-01-20 01:10:33 -08:00
Benjamin Peterson
c28ab08887
merge 3.3 ( #18574 )
2014-01-18 21:51:11 -05:00
Benjamin Peterson
044242360d
fix handling of 100-continue status code ( closes #18574 )
2014-01-18 21:50:18 -05:00
Stefan Krah
5de3278b23
Fix test failures (--without-doc-strings).
2014-01-18 23:18:39 +01:00
Serhiy Storchaka
5d83d1a814
Issue #20270 : urllib.urlparse now supports empty ports.
2014-01-18 18:31:41 +02:00
Serhiy Storchaka
ff97b08d00
Issue #20270 : urllib.urlparse now supports empty ports.
2014-01-18 18:30:33 +02:00
Serhiy Storchaka
aee0e63ed0
Issue #20243 : TarFile no longer raise ReadError when opened in write mode.
2014-01-18 16:14:49 +02:00
Serhiy Storchaka
c2d01423e0
Issue #20243 : TarFile no longer raise ReadError when opened in write mode.
2014-01-18 16:14:10 +02:00
Serhiy Storchaka
7d68a1c921
Issue #20238 : TarFile opened with external fileobj and "w:gz" mode didn't
...
write complete output on close.
2014-01-18 15:53:39 +02:00
Serhiy Storchaka
9fbec7ad5e
Issue #20238 : TarFile opened with external fileobj and "w:gz" mode didn't
...
write complete output on close.
2014-01-18 15:53:05 +02:00
Serhiy Storchaka
ce644a09ac
Issue #20245 : The open functions in the tarfile module now correctly handle empty mode.
2014-01-18 15:37:21 +02:00
Serhiy Storchaka
53ad0cd284
Issue #20245 : The open functions in the tarfile module now correctly handle empty mode.
2014-01-18 15:35:37 +02:00
Gregory P. Smith
4cfbac80bd
sort os.listxattr results before comparing it to avoid depending on the ordering of the directory information in the underlying filesystem.
2014-01-17 12:01:40 -08:00
Gregory P. Smith
1093bf2c7f
sort os.listxattr results before comparing it to avoid depending on the
...
ordering of the directory information in the underlying filesystem.
2014-01-17 12:01:22 -08:00
Larry Hastings
1abd708681
Issue #20226 : Added tests for new features and regressions.
2014-01-16 14:15:03 -08:00
Larry Hastings
2a727916c5
Issue #20226 : Major improvements to Argument Clinic.
...
* You may now specify an expression as the default value for a
parameter! Example: "sys.maxsize - 1". This support is
intentionally quite limited; you may only use values that
can be represented as static C values.
* Removed "doc_default", simplified support for "c_default"
and "py_default". (I'm not sure we still even need
"py_default", but I'm leaving it in for now in case a
use presents itself.)
* Parameter lines support a trailing '\\' as a line
continuation character, allowing you to break up long lines.
* The argument parsing code generated when supporting optional
groups now uses PyTuple_GET_SIZE instead of PyTuple_GetSize,
leading to a 850% speedup in parsing. (Just kidding, this
is an unmeasurable difference.)
* A bugfix for the recent regression where the generated
prototype from pydoc for builtins would be littered with
unreadable "=<object ...>"" default values for parameters
that had no default value.
* Converted some asserts into proper failure messages.
* Many doc improvements and fixes.
2014-01-16 11:32:01 -08:00
Serhiy Storchaka
7f470d0f9c
Issue #19936 : Remove executable bits from C source files and several forgotten
...
test files.
2014-01-16 18:48:45 +02:00
Serhiy Storchaka
8f8ec92de8
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang lines in the unittestgui and checkpip scripts.
2014-01-16 17:33:23 +02:00
Serhiy Storchaka
b992a0e102
Issue #19936 : Added executable bits or shebang lines to Python scripts which
...
requires them. Disable executable bits and shebang lines in test and
benchmark files in order to prevent using a random system python, and in
source files of modules which don't provide command line interface. Fixed
shebang line to use python3 executable in the unittestgui script.
2014-01-16 17:15:49 +02:00
Ronald Oussoren
6db6653bbc
Issue #14455 : Fix some issues with plistlib
...
* Negative integer support in binary plists was broken
* Better exception for invalid data
* Fix the versionadded/versionchanged markup in the documentation
* Add the interface cleanup to what's new for 3.4
2014-01-15 11:32:35 +01:00
Benjamin Peterson
60ea92883f
merge 3.3
2014-01-14 00:29:03 -05:00
Benjamin Peterson
bd1d12e61b
add test for #20251
2014-01-14 00:27:42 -05:00
Benjamin Peterson
c6b37e21f5
merge 3.3 ( #20246 )
2014-01-13 23:14:42 -05:00
Benjamin Peterson
5688222907
merge 3.2 ( #20246 )
2014-01-13 23:12:55 -05:00
Benjamin Peterson
fbf648ebba
complain when nbytes > buflen to fix possible buffer overflow ( closes #20246 )
2014-01-13 22:59:38 -05:00
Vinay Sajip
30e6a64e76
Closes #20242 : Merged fix from 3.3.
2014-01-13 22:01:16 +00:00
Vinay Sajip
1fd1202072
Issue #20242 : Fixed basicConfig() format strings for the alternative formatting styles.
2014-01-13 21:59:56 +00:00
R David Murray
44fcaae90d
Merge #20206 , #5803 : more efficient algorithm that doesn't truncate output.
...
(No idea why test_tarfile is listed as changed...it isn't.)
2014-01-13 13:30:13 -05:00
R David Murray
2313e15578
#20206 , #5803 : more efficient algorithm that doesn't truncate output.
...
This fixes an edge case (20206) where if the input ended in a character
needing encoding but there was no newline on the string, the last byte
of the encoded character would be dropped. The fix is to use a more
efficient algorithm, provided by Serhiy Storchaka (5803), that does not
have the bug.
2014-01-13 13:19:21 -05:00
Serhiy Storchaka
f22fe0f507
Test the open of non-exitent tarfile in all modes.
2014-01-13 19:08:00 +02:00
Serhiy Storchaka
2a3d7d1af7
Test the open of non-exitent tarfile in all modes.
2014-01-13 19:07:33 +02:00
Ethan Furman
a70805e1fa
Issue19995: fixed typo; switched from test.support.check_warnings to assertWarns
2014-01-12 08:42:35 -08:00
Serhiy Storchaka
61dab6e3fa
Issue #20138 : The wsgiref.application_uri() and wsgiref.request_uri()
...
functions now conform to PEP 3333 when handle non-ASCII URLs.
2014-01-12 12:09:38 +02:00
Serhiy Storchaka
0abbe8c090
Issue #20138 : The wsgiref.application_uri() and wsgiref.request_uri()
...
functions now conform to PEP 3333 when handle non-ASCII URLs.
2014-01-12 12:08:11 +02:00
Ethan Furman
f9bba9c67f
Issue19995: issue deprecation warning for non-integer values to %c, %o, %x, %X
2014-01-11 23:20:58 -08:00
Senthil Kumaran
d87346c0ce
merge from 3.3
...
Issue #19092 - Raise a correct exception when cgi.FieldStorage is given an
invalid file-obj. Also use __bool__ to determine the bool of the FieldStorage
object.
2014-01-11 22:22:21 -08:00
Senthil Kumaran
b4cbb92fbe
Issue #19092 - Raise a correct exception when cgi.FieldStorage is given an
...
invalid file-obj. Also use __bool__ to determine the bool of the FieldStorage
object.
2014-01-11 22:20:16 -08:00
Victor Stinner
5e42354263
Fix ResourceWarning in test_asyncio.test_windows_events:
...
close the write end of the socket pair
2014-01-11 00:16:50 +01:00
Guido van Rossum
02757ea7e9
asyncio: Minimal pty support in UNIX read pipe, by Jonathan Slenders.
2014-01-10 13:30:04 -08:00
Serhiy Storchaka
50471db565
Issue #19804 : The test_find_mac test in test_uuid is now skipped if the
...
ifconfig executable is not available.
2014-01-10 15:08:07 +02:00
Serhiy Storchaka
cce440fab8
Issue #19804 : The test_find_mac test in test_uuid is now skipped if the
...
ifconfig executable is not available.
2014-01-10 15:06:59 +02:00
Serhiy Storchaka
786ac7b27d
Issue #19886 : Use better estimated memory requirements for bigmem tests.
...
Incorrect requirements can cause memory swapping.
2014-01-10 13:39:27 +02:00
Serhiy Storchaka
4847e4e1f4
Issue #19886 : Use better estimated memory requirements for bigmem tests.
...
Incorrect requirements can cause memory swapping.
2014-01-10 13:37:54 +02:00
Antoine Pitrou
eb16804216
assertEquals is deprecated, use assertEqual instead.
2014-01-10 00:02:38 +01:00
Serhiy Storchaka
123e6d5b4b
Issue #13107 : argparse and optparse no longer raises an exception when output
...
a help on environment with too small COLUMNS. Based on patch by
Elazar Gershuni.
2014-01-09 23:18:41 +02:00
Serhiy Storchaka
f451112413
Issue #13107 : argparse and optparse no longer raises an exception when output
...
a help on environment with too small COLUMNS. Based on patch by
Elazar Gershuni.
2014-01-09 23:14:27 +02:00
Antoine Pitrou
ba44860c11
Try to fix test_ssl failures on some buildbots
2014-01-09 21:30:17 +01:00
Antoine Pitrou
32c4915b23
Try to fix test_ssl failures on some buildbots
2014-01-09 21:28:48 +01:00
Antoine Pitrou
78ace81c93
Issue #20207 : Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for.
2014-01-09 20:09:03 +01:00
Antoine Pitrou
cd3d7cabef
Issue #20207 : Always disable SSLv2 except when PROTOCOL_SSLv2 is explicitly asked for.
2014-01-09 20:02:20 +01:00
Serhiy Storchaka
5940b92909
Do not reset the line number because we already set file position to correct
...
value.
(fixes error in patch for issue #18960 )
2014-01-09 20:13:52 +02:00
Serhiy Storchaka
1064a13bb0
Do not reset the line number because we already set file position to correct
...
value.
(fixes error in patch for issue #18960 )
2014-01-09 20:12:49 +02:00
Benjamin Peterson
a118c4fa79
merge 3.3
2014-01-09 11:12:31 -06:00
Benjamin Peterson
50b82c765f
clear zip stat cache after each ref leak run
2014-01-09 11:10:30 -06:00
Serhiy Storchaka
7282ff6d5b
Issue #18960 : Fix bugs with Python source code encoding in the second line.
...
* The first line of Python script could be executed twice when the source
encoding (not equal to 'utf-8') was specified on the second line.
* Now the source encoding declaration on the second line isn't effective if
the first line contains anything except a comment.
* As a consequence, 'python -x' works now again with files with the source
encoding declarations specified on the second file, and can be used again
to make Python batch files on Windows.
* The tokenize module now ignore the source encoding declaration on the second
line if the first line contains anything except a comment.
* IDLE now ignores the source encoding declaration on the second line if the
first line contains anything except a comment.
* 2to3 and the findnocoding.py script now ignore the source encoding
declaration on the second line if the first line contains anything except
a comment.
2014-01-09 18:41:59 +02:00
Serhiy Storchaka
768c16ce02
Issue #18960 : Fix bugs with Python source code encoding in the second line.
...
* The first line of Python script could be executed twice when the source
encoding (not equal to 'utf-8') was specified on the second line.
* Now the source encoding declaration on the second line isn't effective if
the first line contains anything except a comment.
* As a consequence, 'python -x' works now again with files with the source
encoding declarations specified on the second file, and can be used again
to make Python batch files on Windows.
* The tokenize module now ignore the source encoding declaration on the second
line if the first line contains anything except a comment.
* IDLE now ignores the source encoding declaration on the second line if the
first line contains anything except a comment.
* 2to3 and the findnocoding.py script now ignore the source encoding
declaration on the second line if the first line contains anything except
a comment.
2014-01-09 18:36:09 +02:00
Serhiy Storchaka
69fdbf9cb0
Issue #20078 : Reading malformed zipfiles no longer hangs with 100% CPU
...
consumption.
2014-01-09 14:53:41 +02:00
Serhiy Storchaka
5ce3f10aee
Issue #20078 : Reading malformed zipfiles no longer hangs with 100% CPU
...
consumption.
2014-01-09 14:50:20 +02:00
Victor Stinner
6f17deb9bb
(Merge 3.3) Issue #20113 : Fix test_posix on OpenIndiana
2014-01-08 16:01:42 +01:00
Victor Stinner
cd5ca6a564
Issue #20113 : Fix test_posix on OpenIndiana
2014-01-08 16:01:31 +01:00
Victor Stinner
149e540adf
(Merge 3.3) Issue #20113 : os.readv() and os.writev() now raise an OSError
...
exception on error instead of returning -1.
2014-01-08 15:26:12 +01:00
Victor Stinner
57ddf78b6b
Issue #20113 : os.readv() and os.writev() now raise an OSError exception on
...
error instead of returning -1.
2014-01-08 15:21:28 +01:00
Gregory P. Smith
2e385e2592
Fixes issue #19081 : When a zipimport .zip file in sys.path being imported from
...
is modified during the lifetime of the Python process after zipimport has
already cached the zip's table of contents we detect this and recover
rather than read bad data from the .zip (causing odd import errors).
2014-01-07 18:34:23 -08:00
Gregory P. Smith
2bcbc14117
Fixes Issue #19081 : When a zipimport .zip file in sys.path being imported from
...
is modified during the lifetime of the Python process after zipimport has
already cached the zip's table of contents we detect this and recover
rather than read bad data from the .zip (causing odd import errors).
2014-01-07 18:30:07 -08:00
Brett Cannon
8d942296bb
Issue #19719 : Update various finder and loader ABCs such that their
...
old methods now provide implementations when PEP 451 APIs are present.
This should help with backwards-compatibility with code which has not
been updated to work with PEP 451.
2014-01-07 15:52:42 -05:00
Larry Hastings
16c5191ab3
Issue #20144 : Argument Clinic now supports simple constants as parameter
...
default values. inspect.Signature correspondingly supports them in
__text_signature__ fields for builtins.
2014-01-07 11:53:01 -08:00
Victor Stinner
cc26310e2e
Issue #20162 : test_hash_distribution() uses subTest() to mention the prefix in
...
the error message.
2014-01-07 14:40:51 +01:00
Eric Snow
1500d49c22
Issue 19713: Add PEP 451-related deprecations.
2014-01-06 20:49:04 -07:00
Eric Snow
3a62d14b24
Issue #19703 : Update pydoc to use the new importer APIs.
2014-01-06 20:42:59 -07:00
Eric Snow
3192eac6cf
Remove dead PEP 451 code.
2014-01-06 20:38:16 -07:00
Ethan Furman
df3ed242c0
Issue19995: %o, %x, %X now only accept ints
2014-01-05 06:50:30 -08:00
Eric Snow
5ea97506a2
Issue 20123: Disable a problematic test.
2014-01-04 23:04:27 -07:00
Eric Snow
0dddf4258a
Issue 20123: try using a different builtin module in a pydoc test.
...
The test is failing on one of the stable FreeBSD buildbots. It seems
unlikely that the gc module would not be available, so switching to
_imp may not fix the problem.
2014-01-04 21:56:07 -07:00
Eric Snow
aed5b22ead
Issue 20123: Fix pydoc.synopsis() for "binary" modules.
...
Also add missing tests to test_pydoc.
2014-01-04 20:38:11 -07:00
Eric Snow
37148b27ac
Issue #19708 : Update pkgutil to use the new importer APIs.
2014-01-04 15:09:53 -07:00
Eric Snow
335e14dd1a
Issue #19713 : Move away from using find_module/load_module.
2014-01-04 15:09:28 -07:00
Eric Snow
d749c7ae68
Issue #19927 : Add __eq__ to path-based loaders in importlib.
2014-01-04 15:06:49 -07:00
Martin v. Löwis
24e43308b7
* Issue #16113 : Remove sha3 module again.
...
Patch by Christian Heimes, with modifications.
2014-01-03 14:05:06 +01:00
Eric Snow
fbc785188d
Issue #20097 : Fix bad use of "self" in importlib's WindowsRegistryFinder.
2014-01-02 22:25:00 -07:00
Victor Stinner
daeffd2c08
audioop: adpcm2lin() and lin2adpcm() now raises a TypeError instead of a
...
SystemError if the state type is invalid.
2014-01-03 03:26:47 +01:00
Antoine Pitrou
1b02da95d2
Issue #20111 : pathlib.Path.with_suffix() now sanity checks the given suffix.
2014-01-03 00:07:17 +01:00
Zachary Ware
393a94243f
Issue #20101 : Merge with 3.3
2014-01-02 09:43:09 -06:00
Zachary Ware
487aedb77c
Issue #20101 : Allow test_monotonic to pass on Windows machines on which
...
time.get_clock_info('monotonic').resolution == 0.015600099999999999
This is just a workaround pending a real resolution to #20101 .
2014-01-02 09:41:10 -06:00
Donald Stufft
f7f58f8db5
Update pip to the released 1.5
2014-01-02 09:33:35 -05:00
Victor Stinner
009771ee6b
(Merge 3.3) Issue #18829 : Add tests for the csv module for invalid characters
...
(delimiter, escapechar, quotechar)
2014-01-02 12:53:50 +01:00
Victor Stinner
6a31b0fa19
Issue #18829 : Add tests for the csv module for invalid characters (delimiter,
...
escapechar, quotechar)
2014-01-02 12:53:13 +01:00
Antoine Pitrou
b672888092
Issue #20055 : Fix test_shutil under Windows with symlink privileges held.
...
Patch by Vajrasky Kok.
2014-01-01 02:51:58 +01:00
Antoine Pitrou
3f48ac98c0
Issue #20055 : Fix test_shutil under Windows with symlink privileges held.
...
Patch by Vajrasky Kok.
2014-01-01 02:50:45 +01:00
Zachary Ware
efa2e04033
Issue19619: skip zlib error test when zlib not available
2013-12-30 14:54:11 -06:00
Senthil Kumaran
b6fac245b5
Backporing the fix from Issue #12692
2013-12-28 17:36:18 -08:00
Antoine Pitrou
3e86ba4e32
Issue #19422 : Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data.
2013-12-28 17:26:33 +01:00
Antoine Pitrou
156b3610b8
Issue #19918 : Fix PurePath.relative_to() under Windows.
2013-12-28 19:49:04 +01:00
Antoine Pitrou
e6d2f159fc
Issue #19422 : Explicitly disallow non-SOCK_STREAM sockets in the ssl module, rather than silently let them emit clear text data.
2013-12-28 17:30:51 +01:00
Antoine Pitrou
c1764dd350
Issue #19648 : implement empty tests in pickletester. Patch by Gennadiy Zlobin.
2013-12-28 16:57:37 +01:00
R David Murray
ecff5e51a5
#18116 : backport fix to 3.3 since real-world failure mode demonstrated.
...
In issue 20074 it was pointed out that getpass would fail with a traceback if
stdin was, for example /dev/null, which is a non-unlikely scenario.
Also backported the tests from issue 17484 as modified by issue 18116.
(What I really did was copy getpass.py and test_getpass.py from their
state on tip as of 17bd04fbf3d3).
2013-12-27 11:24:32 -05:00
Serhiy Storchaka
8c4f57d1d5
Issue #20046 : Locale alias table no longer contains entities which can be
...
calculated. Generalized support of the euro modifier.
2013-12-27 00:56:53 +02:00
Serhiy Storchaka
e190fac5f9
Issue #20027 : Fixed locale aliases for devanagari locales.
2013-12-26 21:21:52 +02:00
Serhiy Storchaka
5eb01530b2
Issue #20027 : Fixed locale aliases for devanagari locales.
2013-12-26 21:20:59 +02:00