Serhiy Storchaka
af984de923
Issue #21493 : Added test for ntpath.expanduser(). Original patch by
...
Claudiu Popa.
2014-05-28 18:14:03 +03:00
Serhiy Storchaka
ffc1e6d42b
Issue #21493 : Added test for ntpath.expanduser(). Original patch by
...
Claudiu Popa.
2014-05-28 18:11:29 +03:00
Andrew Svetlov
a5f6ef8457
Fix for raising exception not derived from BaseException in _SelectorSslTransport.resume_reading
2014-05-27 21:25:31 +03:00
Andrew Svetlov
3207a03035
Fix for raising exception not derived from BaseException in _SelectorSslTransport.resume_reading
2014-05-27 21:24:43 +03:00
Raymond Hettinger
79cae680a3
merge
2014-05-26 00:44:35 -07:00
Raymond Hettinger
dea46ec965
Issue #21481 : Teach argparse equality tests to return NotImplemented when comparing to unknown types.
2014-05-26 00:43:27 -07:00
Raymond Hettinger
aa92d342f1
merge
2014-05-26 00:14:14 -07:00
Raymond Hettinger
dd5e53a086
Issue 8743: Improve interoperability between sets and the collections.Set abstract base class.
2014-05-26 00:09:04 -07:00
Raymond Hettinger
2d452ee166
Issue 15246: Improve test coverage for collections.abc.Set. (Contributed by James King).
2014-05-25 18:28:39 -07:00
Raymond Hettinger
62f4dad816
Issue 21137: Better repr for threading.Lock()
2014-05-25 18:22:35 -07:00
Raymond Hettinger
d58a0b6876
merge
2014-05-25 17:28:38 -07:00
Raymond Hettinger
978c6abced
Issue 13355: Make random.triangular degrade gracefully when low == high.
2014-05-25 17:25:27 -07:00
Serhiy Storchaka
89b49a9e30
Issue #19925 : Added tests for the spwd module. Original patch by Vajrasky Kok.
2014-05-25 16:22:20 +03:00
Serhiy Storchaka
7df417d50a
Issue #19925 : Added tests for the spwd module. Original patch by Vajrasky Kok.
2014-05-25 16:21:45 +03:00
Serhiy Storchaka
2f8dca735e
Issue #20197 : Added support for the WebP image type in the imghdr module.
...
Patch by Fabrice Aneche and Claudiu Popa.
2014-05-25 11:45:37 +03:00
Brett Cannon
17f9cc07f3
Merge for issue #14710
2014-05-23 12:32:30 -04:00
Brett Cannon
8447c703d1
Issue #14710 : Fix both pkgutil.find_loader() and get_loader() to not
...
raise an exception when a module doesn't exist.
Thanks to Pavel Aslanov for the bug report.
2014-05-23 12:30:37 -04:00
Serhiy Storchaka
c083537b87
Issue #21538 : The plistlib module now supports loading of binary plist files
...
when reference or offset size is not a power of two.
2014-05-23 16:15:06 +03:00
Serhiy Storchaka
065266450e
Issue #21538 : The plistlib module now supports loading of binary plist files
...
when reference or offset size is not a power of two.
2014-05-23 16:13:33 +03:00
Antoine Pitrou
5c8008e59d
Issue #21523 : Fix over-pessimistic computation of the stack effect of some opcodes in the compiler.
...
This also fixes a quadratic compilation time issue noticeable when compiling
code with a large number of "and" and "or" operators.
2014-05-23 11:47:32 +02:00
Antoine Pitrou
9961405ed1
Issue #21523 : Fix over-pessimistic computation of the stack effect of some opcodes in the compiler.
...
This also fixes a quadratic compilation time issue noticeable when compiling
code with a large number of "and" and "or" operators.
2014-05-23 11:46:03 +02:00
Charles-François Natali
644b8f52a8
Issue #21455 : Add a default backlog to socket.listen().
2014-05-22 19:45:39 +01:00
Serhiy Storchaka
2b00c4999d
Issue #21525 : Most Tkinter methods which accepted tuples now accept lists too.
2014-05-21 17:12:21 +03:00
Victor Stinner
1c4398f880
(Merge 3.4) asyncio: test_base_events: use mock.Mock instead of
...
unittest.mock.Mock to simplify the synchronization with Trollius
2014-05-20 15:57:32 +02:00
Victor Stinner
93668f4459
asyncio: test_base_events: use mock.Mock instead of unittest.mock.Mock to
...
simplify the synchronization with Trollius
2014-05-20 15:57:08 +02:00
Brian Quinlan
20efceb757
Issue #21362 : concurrent.futures does not validate that max_workers is proper
2014-05-17 13:51:10 -07:00
Eric Snow
3497c0bf95
Issue #21503 : Use test_both() consistently in test_importlib.
2014-05-16 11:40:40 -06:00
Eric Snow
d50cee2045
Fix a small typo in test_importlib.
2014-05-16 11:22:05 -06:00
Victor Stinner
0d4e01ca07
Issue #13916 : Fix surrogatepass error handler on Windows
2014-05-16 14:46:20 +02:00
Serhiy Storchaka
88d8fb6af6
Issue #13916 : Disallowed the surrogatepass error handler for non UTF-*
...
encodings.
2014-05-15 14:37:42 +03:00
Serhiy Storchaka
2e03a0a8a7
Issue #20998 : Fixed re.fullmatch() of repeated single character pattern
...
with ignore case. Original patch by Matthew Barnett.
2014-05-14 21:51:37 +03:00
Serhiy Storchaka
429b59ec69
Issue #20998 : Fixed re.fullmatch() of repeated single character pattern
...
with ignore case. Original patch by Matthew Barnett.
2014-05-14 21:48:17 +03:00
Serhiy Storchaka
b9183bb4fd
Issue #21075 : fileinput.FileInput now reads bytes from standard stream if
...
binary mode is specified. Patch by Sam Kimbrel.
2014-05-14 21:11:08 +03:00
Serhiy Storchaka
946cfc3e23
Issue #21075 : fileinput.FileInput now reads bytes from standard stream if
...
binary mode is specified. Patch by Sam Kimbrel.
2014-05-14 21:08:33 +03:00
Victor Stinner
79b49ab553
(Merge 3.4) Issue #21497 : faulthandler functions now raise a better error if
...
sys.stderr is None: RuntimeError("sys.stderr is None") instead of
AttributeError("'NoneType' object has no attribute 'fileno'").
2014-05-14 17:16:58 +02:00
Victor Stinner
e2d66903e8
Issue #21497 : faulthandler functions now raise a better error if sys.stderr is
...
None: RuntimeError("sys.stderr is None") instead of AttributeError("'NoneType'
object has no attribute 'fileno'").
2014-05-14 17:15:50 +02:00
Victor Stinner
a57dfd033c
Issue #21488 : Add support of keyword arguments for codecs.encode and codecs.decode
2014-05-14 17:13:14 +02:00
Victor Stinner
e1e04ad8aa
Backed out changeset 6ceedbd88b5f
2014-05-14 17:12:27 +02:00
Victor Stinner
b78c448f4b
Issue #21488 : Add support of keyword arguments for codecs.encode and codecs.decode
2014-05-14 17:10:45 +02:00
Eric Snow
e1c9e5270a
Merge from 3.4 (for #21499 ).
2014-05-13 12:18:07 -06:00
Eric Snow
2f46a0e8be
Issue #21499 : Ignore __builtins__ in several test_importlib.test_api tests.
2014-05-13 12:15:42 -06:00
Guido van Rossum
c7188e2690
Merge 3.4->default: Fix test-order-dependend asyncio test failure caused by rev 2af5a52b9b87 (in this branch).
2014-05-13 09:21:33 -07:00
Guido van Rossum
7664eb0297
Fix test-order-dependend asyncio test failure caused by rev 909ea8cc86bbab92dbb6231668f403b7360f30fa.
2014-05-13 09:19:39 -07:00
doko@ubuntu.com
987831c945
Merge from 3.4:
...
- Issue #17756 : Fix test_code test when run from the installed location.
2014-05-13 11:30:17 +02:00
doko@ubuntu.com
15bec9cb3f
- Issue #17756 : Fix test_code test when run from the installed location.
2014-05-13 11:28:12 +02:00
Antoine Pitrou
43e3d9409d
Issue #19775 : Add a samefile() method to pathlib Path objects.
...
Initial patch by Vajrasky Kok.
2014-05-13 10:50:15 +02:00
Victor Stinner
66113bb74a
(Merge 3.4) Issue #21422 : Add a test to check that bool << int and bool >> int
...
return an int
2014-05-12 22:43:07 +02:00
Victor Stinner
7fe1049fcb
Issue #21422 : Add a test to check that bool << int and bool >> int return an int
2014-05-12 22:35:40 +02:00
Antoine Pitrou
5fb195f854
Issue #16531 : ipaddress.IPv4Network and ipaddress.IPv6Network now accept an (address, netmask) tuple argument, so as to easily construct network objects from existing addresses.
2014-05-12 20:36:46 +02:00
Guido van Rossum
3b5162d05d
Merge 3.4->default: asyncio: Fix upstream issue 168: StreamReader.read(-1) from pipe may hang if data exceeds buffer limit.
2014-05-12 10:05:04 -07:00
Guido van Rossum
bf88ffba5e
asyncio: Fix upstream issue 168: StreamReader.read(-1) from pipe may hang if data exceeds buffer limit.
2014-05-12 10:04:37 -07:00
Raymond Hettinger
234fb2d503
Issue 21424: Apply the nlargest() optimizations to nsmallest() as well.
2014-05-11 14:21:23 -07:00
Antoine Pitrou
5e6b5f2f26
Try to fix issue #21425 workaround for shared library builds
2014-05-11 19:13:43 +02:00
Antoine Pitrou
ffef2447ee
Try to fix issue #21425 workaround for shared library builds
2014-05-11 19:13:43 +02:00
Antoine Pitrou
5006a56e39
Fix printing out error message when test fails and run with -bb
2014-05-11 19:05:50 +02:00
Antoine Pitrou
dab4e8a02d
Fix printing out error message when test fails and run with -bb
2014-05-11 19:05:23 +02:00
Antoine Pitrou
4f23472fc2
Remove debugging output
2014-05-11 17:29:57 +02:00
Antoine Pitrou
6b4b8d0722
Try workaround for test issues in #21425
2014-05-11 16:59:16 +02:00
Antoine Pitrou
bb62c18ec9
Try workaround for test issues in #21425
2014-05-11 16:59:16 +02:00
Antoine Pitrou
ffd72737d3
Fix debugging output to work with -W
2014-05-11 16:36:22 +02:00
Antoine Pitrou
c1b22d9c22
Fix debugging output to work with -bb
2014-05-11 16:24:45 +02:00
Antoine Pitrou
0a44a0b827
Add debugging output for #21425
2014-05-11 16:09:15 +02:00
Antoine Pitrou
1c33280c95
Issue #21425 : Fix flushing of standard streams in the interactive interpreter.
2014-05-11 13:43:31 +02:00
Antoine Pitrou
9845c7ebc5
Issue #21425 : Fix flushing of standard streams in the interactive interpreter.
2014-05-11 13:42:17 +02:00
Raymond Hettinger
277842eff1
Issue #21424 : Optimize heaqp.nlargest() to make fewer tuple comparisons.
...
Consolidates the logic for nlargest() into a single function so that
decoration tuples (elem,order) or (key, order, elem) only need to
be formed when a new element is added to the heap. Formerly, a tuple
was created for every element regardless of whether it was added to
the heap.
The change reduces the number of tuples created, the number of ordering
integers created, and total number of tuple comparisons.
2014-05-11 01:55:46 -07:00
Eli Bendersky
f84866c9af
Issue #19655 : Add tests for the new asdl parser.
...
This unit test runs only for source builds of Python, similarly to test_tools.
2014-05-09 19:03:25 -07:00
Brett Cannon
732ac654c8
Issue #19721 : Consolidate test_importlib utility code into a single
...
module.
2014-05-09 14:32:57 -04:00
Brett Cannon
91795c8e34
Issue #20776 : Flesh out tests for importlib.machinery.PathFinder.
2014-05-09 13:38:11 -04:00
Tim Peters
983c1065fe
Merge from 3.4.
...
Issue #21435 : Segfault in gc with cyclic trash
Changed the iteration logic in finalize_garbage() to tolerate objects vanishing
from the list as a side effect of executing a finalizer.
2014-05-08 17:43:25 -05:00
Tim Peters
5fbc7b12f7
Issue #21435 : Segfault in gc with cyclic trash
...
Changed the iteration logic in finalize_garbage() to tolerate objects vanishing
from the list as a side effect of executing a finalizer.
2014-05-08 17:42:19 -05:00
Antoine Pitrou
38ca5a7b6d
Issue #21396 : Fix TextIOWrapper(..., write_through=True) to not force a flush() on the underlying binary stream.
...
Patch by akira.
2014-05-09 00:31:32 +02:00
Antoine Pitrou
c644e7c39f
Issue #21396 : Fix TextIOWrapper(..., write_through=True) to not force a flush() on the underlying binary stream.
...
Patch by akira.
2014-05-09 00:24:50 +02:00
Guido van Rossum
5dcad2c8f3
Merge 3.4->default: asyncio: Fix the second half of issue #21447 : race in _write_to_self().
2014-05-06 14:45:39 -07:00
Guido van Rossum
3d139d8ed6
asyncio: Fix the second half of issue #21447 : race in _write_to_self().
2014-05-06 14:42:40 -07:00
Tim Golden
e0bd2c5fad
Issue21440 Use support.rmtree in test_zipfile & test_tarfile
2014-05-06 13:24:26 +01:00
Tim Golden
0321cf2550
Issue18314 Allow unlink to remove junctions. Includes support for creating junctions. Patch by Kim Gräsman
2014-05-05 19:46:17 +01:00
Larry Hastings
f19a400714
Issue #21088 : Merge from 3.4.
2014-05-04 04:45:57 -07:00
Larry Hastings
9147a9697a
Issue #21088 : Bugfix for curses.window.addch() regression in 3.4.0.
...
In porting to Argument Clinic, the first two arguments were reversed.
2014-05-04 04:41:18 -07:00
Raymond Hettinger
53d2c41f77
Issue #19414 : Have the OrderedDict mark deleted links as unusable.
...
This gives an earlier and more visible failure if a link is deleted
during iteration.
2014-05-03 21:58:45 -07:00
Ned Deily
71ac07f8ba
Issue #18604 : merge from 3.4
2014-05-03 19:25:34 -07:00
Ned Deily
88b5b6ddf6
Issue #18604 : Skip the Tk instantiation test on OS X because it can
...
cause GUI tests to segfault in Cocoa Tk when run under regrtest -j
(multiple threads running subprocesses).
2014-05-03 19:24:05 -07:00
Benjamin Peterson
98baa14109
merge 3.4
2014-05-03 20:18:56 -04:00
Benjamin Peterson
3d678e3b12
use with blocks to make sure files are closed
2014-05-03 20:18:50 -04:00
Benjamin Peterson
644bb49a45
merge 3.4 ( #21357 )
2014-05-03 20:16:59 -04:00
Benjamin Peterson
f24600eb64
improve test coverage of filecmp ( closes #21357 )
...
Patch by Diana Clarke.
2014-05-03 20:07:16 -04:00
Zachary Ware
cb2ad801ac
Closes #18604 : Merge with 3.4
2014-05-02 10:52:12 -05:00
Zachary Ware
ceced6bfea
Issue #18604 : Consolidated checks for GUI availability.
...
test_support._is_gui_available is now defined the same way on every
platform, and now includes the Windows-specific check that had been in the
Windows version of _is_gui_available and the OSX-specific check that was
in tkinter.test.support.check_tk_availability. Also, every platform
checks whether Tk can be instantiated (if the platform-specific checks
passed).
2014-05-02 10:51:07 -05:00
Stefan Krah
6b794b8b59
Fix typo and tests without docstrings.
2014-05-01 17:42:33 +02:00
Stefan Krah
5de1f82464
Issue #21407 : _decimal now supports function signatures.
2014-05-01 15:53:42 +02:00
Stefan Krah
b151f8f60b
Issue #10650 : Remove the non-standard 'watchexp' parameter from the
...
Decimal.quantize() method in the Python version. It had never been
present in the C version.
2014-04-30 19:15:38 +02:00
Stefan Krah
8fb74a35da
Issue #21374 : Fix pickling of DecimalTuple.
2014-04-29 18:24:50 +02:00
Stefan Krah
f1d4e42195
Issue #21374 : Fix pickling of DecimalTuple.
2014-04-29 18:23:35 +02:00
Jesus Cea
ae43046b61
MERGE: Closes issue #21316 : mark test_devpoll to be meaningfull only for Solaris
2014-04-29 18:18:58 +02:00
Jesus Cea
da25109fbc
Closes issue #21316 : mark test_devpoll to be meaningfull only for Solaris
2014-04-29 18:18:37 +02:00
Antoine Pitrou
32497f89bb
Issue #21321 : itertools.islice() now releases the reference to the source iterator when the slice is exhausted.
...
Patch by Anton Afanasyev.
2014-04-29 12:14:47 +02:00
Antoine Pitrou
26f82efe59
Issue #21321 : itertools.islice() now releases the reference to the source iterator when the slice is exhausted.
...
Patch by Anton Afanasyev.
2014-04-29 12:13:46 +02:00
Antoine Pitrou
3f73e4c715
Fix failure in test_poplib after issue #20951 .
2014-04-29 10:27:09 +02:00
Antoine Pitrou
b8503896ad
Issue #21057 : TextIOWrapper now allows the underlying binary stream's read() or read1() method to return an arbitrary bytes-like object (such as a memoryview).
...
Patch by Nikolaus Rath.
2014-04-29 10:14:02 +02:00
Antoine Pitrou
b4bebdafe3
Issue #20951 : SSLSocket.send() now raises either SSLWantReadError or SSLWantWriteError on a non-blocking socket if the operation would block. Previously, it would return 0.
...
Patch by Nikolaus Rath.
2014-04-29 10:03:28 +02:00
Giampaolo Rodola'
7971286b6e
merge heads
2014-04-29 02:04:14 +02:00