Serhiy Storchaka
6f1435c939
Issue #21881 : Just omit tests for platform-specific NaN representation in test_tcl.
2014-07-07 14:57:08 +03:00
Serhiy Storchaka
f2c4ba1207
Issue #19593 : Use specific asserts in importlib tests.
2014-07-07 14:09:43 +03:00
Serhiy Storchaka
344f8316fd
Issue #19593 : Use specific asserts in importlib tests.
2014-07-07 14:08:19 +03:00
Serhiy Storchaka
3bc13cc8b0
Merge heads
2014-07-07 13:46:09 +03:00
Serhiy Storchaka
66ca861f86
Issue #21881 : Be more tolerant in test_tcl to not parsable by float() NaN
...
representations (on mips and m68k platforms).
2014-07-07 13:45:15 +03:00
Serhiy Storchaka
667abc7d42
Issue #21881 : Be more tolerant in test_tcl to not parsable by float() NaN
...
representations (on mips and m68k platforms).
2014-07-07 13:44:33 +03:00
Benjamin Peterson
96baaae46f
for some reason, you don't get the right checksum from an incremental build
2014-07-06 22:07:08 -07:00
Antoine Pitrou
006c725426
Merge pathlib fixes
2014-07-06 21:38:35 -04:00
Antoine Pitrou
e50dafcd63
Issue #20639 : calling Path.with_suffix('') allows removing the suffix again.
...
Patch by July Tikhonov.
2014-07-06 21:37:15 -04:00
Antoine Pitrou
7084e736db
Issue #21714 : Disallow the construction of invalid paths using Path.with_name(). Original patch by Antony Lee.
2014-07-06 21:31:12 -04:00
Benjamin Peterson
3032ed7cb1
upgrade to unicode 7.0.0
2014-07-06 13:04:20 -07:00
Berker Peksag
1c5f56a955
Issue #9554 : Use modern unittest features in test_argparse.
...
Initial patch by Denver Coneybeare and Radu Voicilas.
2014-07-06 09:33:20 +03:00
Victor Stinner
8c57548f89
(Merge 3.4) Closes #21886 , #21447 : Fix a race condition in asyncio when setting
...
the result of a Future with call_soon(). Add an helper, a private method, to
set the result only if the future was not cancelled.
2014-07-05 15:30:42 +02:00
Victor Stinner
a9acbe82e7
Closes #21886 , #21447 : Fix a race condition in asyncio when setting the result
...
of a Future with call_soon(). Add an helper, a private method, to set the
result only if the future was not cancelled.
2014-07-05 15:29:41 +02:00
Antoine Pitrou
a93342b8b2
Issue #21897 : Fix a crash with the f_locals attribute with closure variables when frame.clear() has been called.
2014-07-04 20:26:22 -04:00
Antoine Pitrou
acc8cf2cfa
Issue #21897 : Fix a crash with the f_locals attribute with closure variables when frame.clear() has been called.
2014-07-04 20:24:13 -04:00
R David Murray
76e13c1c29
#15014 : Add 'auth' command to implement auth mechanisms and use it in login.
...
Patch by Milan Oberkirch.
2014-07-03 14:47:46 -04:00
Zachary Ware
d8b129f279
Closes #21151 : Merge with 3.4
2014-07-03 11:03:46 -05:00
Zachary Ware
ad4690fcca
Issue #21151 : Fixed a segfault in the winreg module.
...
When ``None`` was passed as a ``REG_BINARY`` value to SetValueEx,
PyMem_DEL was called on an uninitialized buffer. Patch by John Ehresman.
(Also an incidental typo fix in a comment in test_winreg)
2014-07-03 10:58:06 -05:00
Berker Peksag
f7eaa0c63c
Issue #21755 : Skip {Frozen,Source}_DeadlockAvoidanceTests tests when
...
Python is built without threads.
2014-07-03 06:25:10 +03:00
Victor Stinner
b57d6a2fec
(Merge 3.4) asyncio: sync with Tulip
...
* _UnixSubprocessTransport: fix file mode of stdin. Open stdin in write mode,
not in read mode
* Examples: close the event loop at exit
* More reliable CoroWrapper.__del__. If the constructor is interrupted by
KeyboardInterrupt or the coroutine objet is destroyed lately, some the
_source_traceback attribute doesn't exist anymore.
* repr(Task): include also the future the task is waiting for
2014-07-03 00:59:28 +02:00
Victor Stinner
2dba23af71
asyncio: sync with Tulip
...
* _UnixSubprocessTransport: fix file mode of stdin. Open stdin in write mode,
not in read mode
* Examples: close the event loop at exit
* More reliable CoroWrapper.__del__. If the constructor is interrupted by
KeyboardInterrupt or the coroutine objet is destroyed lately, some the
_source_traceback attribute doesn't exist anymore.
* repr(Task): include also the future the task is waiting for
2014-07-03 00:59:00 +02:00
Berker Peksag
3e887222aa
Issue #5800 : headers parameter of wsgiref.headers.Headers is now optional.
...
Patch by Pablo Torres Navarrete and SilentGhost.
2014-07-02 08:37:22 +03:00
Zachary Ware
509dab9ef6
Issue #18258 : Fix test discovery for test_codecmaps_*.
2014-07-01 20:06:19 -05:00
Zachary Ware
d9de794c23
Issue #18258 : Fix test discovery for test_codecmaps_*.
2014-07-01 19:55:04 -05:00
Victor Stinner
6a75bb0d83
(Merge 3.4) asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter
2014-07-01 12:39:26 +02:00
Victor Stinner
1690ed397a
asyncio: Fix test_sleep_cancel(): call_later() mock has no self parameter
2014-07-01 12:38:51 +02:00
Victor Stinner
91dd20ba60
asyncio: sync with Tulip
...
- Sort imports
- Simplify/optimize iscoroutine(). Inline inspect.isgenerator(obj): replace it
with isinstance(obj, types.GeneratorType)
- CoroWrapper: check at runtime if Python has the yield-from bug #21209 . If
Python has the bug, check if CoroWrapper.send() was called by yield-from to
decide if parameters must be unpacked or not.
- Fix "Task was destroyed but it is pending!" warning in
test_task_source_traceback()
2014-06-30 14:39:47 +02:00
Victor Stinner
b75380f333
asyncio: sync with Tulip
...
- Sort imports
- Simplify/optimize iscoroutine(). Inline inspect.isgenerator(obj): replace it
with isinstance(obj, types.GeneratorType)
- CoroWrapper: check at runtime if Python has the yield-from bug #21209 . If
Python has the bug, check if CoroWrapper.send() was called by yield-from to
decide if parameters must be unpacked or not.
- Fix "Task was destroyed but it is pending!" warning in
test_task_source_traceback()
2014-06-30 14:39:11 +02:00
Victor Stinner
9dd826b30b
Issue #21645 : asyncio: add a watchdog in test_read_all_from_pipe_reader() for
...
debug
2014-06-30 12:32:59 +02:00
Berker Peksag
977c8a354c
Issue #14235 : Merge from 3.4.
2014-06-30 04:05:54 +03:00
Berker Peksag
67ef591045
Issue #14235 : Use importlib.reload() in test_cmd.test_coverage.
2014-06-30 04:04:52 +03:00
Antoine Pitrou
de68722ca0
Issue #21679 : Prevent extraneous fstat() calls during open(). Patch by Bohuslav Kabrda.
2014-06-29 20:07:28 -04:00
Alexander Belopolsky
f026dae130
Fixes #10541 : regrtest -T is broken
...
* makes test_trace tests restore the tracefunc after they run
* write_results() in trace module will not terminate if lnotab
cannot be found.
2014-06-29 17:44:05 -04:00
Berker Peksag
15c6ed5239
Issue #20753 : Merge with 3.4.
2014-06-29 15:56:21 +03:00
Berker Peksag
ad324f6bcc
Issue #20753 : Skip PasswordProtectedSiteTestCase when Python is built without threads.
2014-06-29 15:54:56 +03:00
Victor Stinner
6cdcf0d5ed
(Merge 3.4) asyncio: sync with Tulip, add a new asyncio.coroutines module
2014-06-29 00:47:28 +02:00
Victor Stinner
f951d28ac8
asyncio: sync with Tulip, add a new asyncio.coroutines module
2014-06-29 00:46:45 +02:00
Jesus Cea
41c8da95f4
MERGE: Closes #11279 : test_posix and lack of "id -G" support - less noise required? (Solaris)
2014-06-28 18:39:51 +02:00
Jesus Cea
61f32cb5b8
Closes #11279 : test_posix and lack of "id -G" support - less noise required? (Solaris)
2014-06-28 18:39:35 +02:00
Antoine Pitrou
8477f7af13
Issue #21863 : cProfile now displays the module name of C extension functions, in addition to their own name.
2014-06-27 23:49:29 -04:00
Victor Stinner
0882e27e2a
(Merge 3.4) asyncio: Fix two "Coroutine xxx was never yielded from" messages in
...
tests
2014-06-28 01:19:28 +02:00
Victor Stinner
09e7590801
asyncio: Fix two "Coroutine xxx was never yielded from" messages in tests
2014-06-28 01:19:11 +02:00
Victor Stinner
875dbedd28
(Merge 3.4) asyncio: Fix unit tests on Windows, escape filenames in regex
2014-06-28 00:14:28 +02:00
Victor Stinner
b9a301a348
asyncio: Fix unit tests on Windows, escape filenames in regex
2014-06-28 00:12:02 +02:00
Victor Stinner
a81088ae12
(Merge 3.4) Issue #11453 : asyncore: emit a ResourceWarning when an unclosed
...
file_wrapper object is destroyed. The destructor now closes the file if needed.
The close() method can now be called twice: the second call does nothing.
2014-06-27 23:57:19 +02:00
Victor Stinner
4d4c69dc35
Issue #11453 : asyncore: emit a ResourceWarning when an unclosed file_wrapper
...
object is destroyed. The destructor now closes the file if needed. The close()
method can now be called twice: the second call does nothing.
2014-06-27 23:52:03 +02:00
Victor Stinner
c3bc856f42
(Merge 3.4) Closes #21582 : Cleanup test_asyncore. Patch written by diana.
...
- Use support.captured_stderr() where appropriate
- Removes some "from test.support import xxx" import and uses support.xxx
instead.
2014-06-27 22:47:41 +02:00
Victor Stinner
252d40ef1e
Closes #21582 : Cleanup test_asyncore. Patch written by diana.
...
- Use support.captured_stderr() where appropriate
- Removes some "from test.support import xxx" import and uses support.xxx
instead.
2014-06-27 22:44:40 +02:00
Victor Stinner
eb39199f3d
(Merge 3.4) asyncio, Tulip issue 137: In debug mode, save traceback where
...
Future, Task and Handle objects are created. Pass the traceback to
call_exception_handler() in the 'source_traceback' key.
The traceback is truncated to hide internal calls in asyncio, show only the
traceback from user code.
Add tests for the new source_traceback, and a test for the 'Future/Task
exception was never retrieved' log.
2014-06-27 13:55:28 +02:00
Victor Stinner
80f53aa9a0
asyncio, Tulip issue 137: In debug mode, save traceback where Future, Task and
...
Handle objects are created. Pass the traceback to call_exception_handler() in
the 'source_traceback' key.
The traceback is truncated to hide internal calls in asyncio, show only the
traceback from user code.
Add tests for the new source_traceback, and a test for the 'Future/Task
exception was never retrieved' log.
2014-06-27 13:52:20 +02:00
Victor Stinner
fe4a979099
(Merge 3.4) asyncio, Tulip issue 137: In debug mode, add the traceback where
...
the coroutine object was created to the "coroutine ... was never yield from"
log
2014-06-27 12:29:30 +02:00
Victor Stinner
bbd96c6f47
asyncio, Tulip issue 137: In debug mode, add the traceback where the coroutine
...
object was created to the "coroutine ... was never yield from" log
2014-06-27 12:28:41 +02:00
Victor Stinner
19b011109d
(Merge 3.4) asyncio: Oops, restore a removed test
2014-06-27 12:24:14 +02:00
Victor Stinner
c4cca45baf
asyncio: Oops, restore a removed test
2014-06-27 12:23:41 +02:00
R David Murray
0c43ed8716
Merge #21476 : Unwrap fp in BytesParser so the file isn't unexpectedly closed.
2014-06-26 13:33:05 -04:00
R David Murray
c6772c4d59
#21476 : Unwrap fp in BytesParser so the file isn't unexpectedly closed.
...
This makes the behavior match that of Parser. Patch by Vajrasky Kok.
2014-06-26 13:31:43 -04:00
R David Murray
2f60820f4c
#20295 : Teach imghdr to recognize OpenEXR format images.
...
Patch by Martin Vignali, test by Claudiu Popa.
2014-06-26 12:27:57 -04:00
Victor Stinner
f5434f73d7
(Merge 3.4) Issue #21163 : Fix one more "Task was destroyed but it is pending!"
...
log in tests
2014-06-25 23:59:31 +02:00
Victor Stinner
72502c12a7
Issue #21163 : Fix one more "Task was destroyed but it is pending!" log in tests
2014-06-25 23:57:50 +02:00
Victor Stinner
86ceffc3ef
(Merge 3.4) asyncio: sync with Tulip
...
- Python issue 21163: Fix more "Task was destroyed but it is pending!" logs in
tests
- Add test to check that run_until_complete() checks the loop of the future
2014-06-25 23:33:02 +02:00
Victor Stinner
7ba4061098
asyncio: sync with Tulip
...
- Python issue 21163: Fix more "Task was destroyed but it is pending!" logs in
tests
- Add test to check that run_until_complete() checks the loop of the future
2014-06-25 23:32:25 +02:00
Victor Stinner
16b3c99141
(Merge 3.4) Issue #21163 , asyncio: Fix some "Task was destroyed but it is
...
pending!" logs in tests
2014-06-25 23:12:58 +02:00
Victor Stinner
87f16f892c
Issue #21163 , asyncio: Fix some "Task was destroyed but it is pending!" logs in tests
2014-06-25 23:11:21 +02:00
Ned Deily
ce38f24af8
Issue #21811 : Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.
2014-06-25 13:42:22 -07:00
Ned Deily
04cdfa1147
Issue #21811 : Anticipated fixes to 3.x and 2.7 for OS X 10.10 Yosemite.
2014-06-25 13:36:14 -07:00
Victor Stinner
893df48682
(Merge 3.4) asyncio, Tulip issue 177: Rewite repr() of Future, Task, Handle and
...
TimerHandle
- Uniformize repr() output to format "<Class ...>"
- On Python 3.5+, repr(Task) uses the qualified name instead of the short name
of the coroutine
2014-06-25 21:43:21 +02:00
Victor Stinner
975735f729
asyncio, Tulip issue 177: Rewite repr() of Future, Task, Handle and TimerHandle
...
- Uniformize repr() output to format "<Class ...>"
- On Python 3.5+, repr(Task) uses the qualified name instead of the short name
of the coroutine
2014-06-25 21:41:58 +02:00
Senthil Kumaran
fc0cad86c7
merge from 3.4
...
issue20753 - robotparser tests should not rely upon external resource when not required.
Specifically, it was relying a URL which gave HTTP 403 and used it to assert
it's methods, this changes undoes that and provides a local http server with
similar properties.
Patch contributed by Vajrasky Kok.
2014-06-25 02:58:53 -07:00
Senthil Kumaran
601d6ec693
issue20753 - robotparser tests should not rely upon external resource when not required.
...
Specifically, it was relying a URL which gave HTTP 403 and used it to assert
it's methods, this changes undoes that and provides a local http server with
similar properties.
Patch contributed by Vajrasky Kok.
2014-06-25 02:58:15 -07:00
Raymond Hettinger
ee205dc7d8
merge
2014-06-24 21:39:27 -07:00
Raymond Hettinger
97d3555029
Issue #19145 : Fix handling of negative values for a "times" keyword argument to itertools.repeat()>
...
(Patch contributed by Vajrasky Kok.)
2014-06-24 21:36:58 -07:00
Victor Stinner
5c2f5ab465
(Merge 3.4) asyncio: repr(Task) now also contains the line number even if the
...
coroutine is done: use the first line number of the code object instead of the
current line number of the generator frame.
The name of the coroutine is not enough because many coroutines may have the
same name. It's a common case in asyncio tests for example.
2014-06-24 22:58:23 +02:00
Victor Stinner
df29c4a83d
asyncio: repr(Task) now also contains the line number even if the coroutine is
...
done: use the first line number of the code object instead of the current line
number of the generator frame.
The name of the coroutine is not enough because many coroutines may have the
same name. It's a common case in asyncio tests for example.
2014-06-24 22:57:14 +02:00
R David Murray
24a3c72638
merge: #20155 : use fake HTTP method names so windows doesn't hang the tests.
2014-06-24 16:49:04 -04:00
R David Murray
14199f9392
#20155 : use fake HTTP method names so windows doesn't hang the tests.
...
Windows was seeing the 'GET' generated by these tests as invalid and forcibly
closing the socket, causing the test to fail.
Patch by Jeff Allen.
2014-06-24 16:39:49 -04:00
Victor Stinner
777aa64eaa
(Merge 3.4) asyncio: Log an error if a Task is destroyed while it is still pending
2014-06-24 22:38:31 +02:00
Victor Stinner
a02f81ff17
asyncio: Log an error if a Task is destroyed while it is still pending
2014-06-24 22:37:53 +02:00
Yury Selivanov
42407abe24
inspect: Validate that __signature__ is None or an instance of Signature.
...
Closes #21801 .
2014-06-23 10:23:50 -07:00
Yury Selivanov
c0f964fd55
inspect: Validate that __signature__ is None or an instance of Signature.
...
Closes #21801 .
2014-06-23 10:21:04 -07:00
Victor Stinner
425aaa11d8
(Merge 3.4) asyncio, Tulip issue 171: BaseEventLoop.close() now raises an
...
exception if the event loop is running. You must first stop the event loop and
then wait until it stopped, before closing it.
2014-06-23 01:03:13 +02:00
Victor Stinner
f328c7dc69
asyncio, Tulip issue 171: BaseEventLoop.close() now raises an exception if the
...
event loop is running. You must first stop the event loop and then wait until
it stopped, before closing it.
2014-06-23 01:02:37 +02:00
Victor Stinner
1217ab0e0f
(Merge 3.4) asyncio, Tulip issue 172: only log selector timing in debug mode
2014-06-23 00:31:31 +02:00
Victor Stinner
1580fe3fce
asyncio, Tulip issue 172: only log selector timing in debug mode
2014-06-23 00:31:08 +02:00
Victor Stinner
dc8b54cdf2
(Merge 3.4) asyncio: Add an unit test to check that setting the
...
PYTHONASYNCIODEBUG env var enables debug mode of the event loop.
2014-06-23 00:21:09 +02:00
Victor Stinner
c082ee692b
asyncio: Add an unit test to check that setting the PYTHONASYNCIODEBUG env var
...
enables debug mode of the event loop.
2014-06-23 00:19:33 +02:00
Victor Stinner
d42b49256f
(Merge 3.4) asyncio: Enable the debug mode of event loops when the
...
PYTHONASYNCIODEBUG environment variable is set
2014-06-23 00:14:45 +02:00
Victor Stinner
7b7120e159
asyncio: Enable the debug mode of event loops when the PYTHONASYNCIODEBUG
...
environment variable is set
2014-06-23 00:12:14 +02:00
Benjamin Peterson
a96fea03e8
add BufferedIOBase.readinto1 ( closes #20578 )
...
Patch by Nikolaus Rath.
2014-06-22 14:17:44 -07:00
Giampaolo Rodola'
bc8197a287
merge heads
2014-06-22 12:44:05 +02:00
Giampaolo Rodola'
4f2eb81280
#6916 : attempt to fix BB failure
2014-06-22 12:43:19 +02:00
Raymond Hettinger
bb91c1d019
Issue 21786: Clean-up test_pydoc taking taking advantage of diffing in unittest.
2014-06-21 12:08:22 -07:00
Raymond Hettinger
986efa074e
merge
2014-06-21 11:59:46 -07:00
Raymond Hettinger
fabefc3c5b
Issue 21635: Fix caching in difflib.SequenceMatcher.get_matching_blocks().
2014-06-21 11:57:36 -07:00
Giampaolo Rodola'
47177861dd
merge heads
2014-06-21 13:59:25 +02:00
Giampaolo Rodola'
bd0487694c
#6916 : raise a deprecation warning if using asynchat.fifo
2014-06-21 13:58:30 +02:00
Charles-François Natali
ca7e5d3e1d
Fix test_pydoc failure introduced by cddb17c4975e. Patch by Berker Peksag.
2014-06-20 23:00:22 +01:00
Charles-François Natali
8aa9e4268f
Merge.
2014-06-20 22:59:32 +01:00
Charles-François Natali
57398c31c4
Fix test_pydoc failure introduced by 7aa72075d440. Patch by Berker Peksag.
2014-06-20 22:59:12 +01:00
Terry Jan Reedy
d51a76f668
Merge with 3.4
2014-06-20 17:49:25 -04:00
Terry Jan Reedy
5d82895c5e
Issue #21770 : Call function instead of module. Patch by Claudiu Popa.
2014-06-20 17:49:10 -04:00
Charles-François Natali
6315ffa339
Merge.
2014-06-20 22:41:21 +01:00
Terry Jan Reedy
af9eb9628d
Issue #21768 : fix NameError in test_pydescr. Patch by Claudiu Popa.
2014-06-20 15:16:35 -04:00
Terry Jan Reedy
fe928de955
Issue #21768 : fix type in test_pydoc, patch by Claudiu Popa.
2014-06-20 14:59:11 -04:00
Victor Stinner
0e6f52a211
asyncio, Tulip issue 105: in debug mode, log callbacks taking more than 100 ms
...
to be executed.
2014-06-20 17:34:15 +02:00
Zachary Ware
63f277b694
Issue #21741 : Add st_file_attributes to os.stat_result on Windows.
...
Patch by Ben Hoyt.
2014-06-19 09:46:37 -05:00
Victor Stinner
f4a1ffd84b
(Merge 3.4) asyncio: Fix pyflakes errors
...
- Add a missing import
- Remove an unused import
- Remove unused variables
2014-06-18 03:27:28 +02:00
Victor Stinner
64d750b36b
asyncio: Fix pyflakes errors
...
- Add a missing import
- Remove an unused import
- Remove unused variables
2014-06-18 03:25:23 +02:00
Victor Stinner
2b8c7a7729
(Merge 3.4) asyncio: Refactor tests: add a base TestCase class
2014-06-18 01:37:31 +02:00
Victor Stinner
c73701de72
asyncio: Refactor tests: add a base TestCase class
2014-06-18 01:36:32 +02:00
Victor Stinner
185ad2d447
(Merge 3.4) asyncio: Refactor test__run_once_logging() to not rely on the exact
...
number of calls to time.monotonic(). Use a "fast select" and a "slow select"
instead.
2014-06-18 01:22:31 +02:00
Victor Stinner
d6f02fc649
asyncio: Refactor test__run_once_logging() to not rely on the exact number of
...
calls to time.monotonic(). Use a "fast select" and a "slow select" instead.
2014-06-18 01:22:15 +02:00
Victor Stinner
c82a4d897f
(Merge 3.4) asyncio: Set __qualname__ attribute of CoroWrapper in @coroutine
...
decorator on Python 3.5.
- Drop __slots__ optimization of CoroWrapper to be able to set the __qualname__
attribute.
- Add tests on __name__, __qualname__ and __module__ of a coroutine function
and coroutine object.
- Fix test_tasks when run in debug mode (PYTHONASYNCIODEBUG env var set) on
Python 3.3 or 3.4
2014-06-18 01:15:27 +02:00
Victor Stinner
8d3e02ef5a
asyncio: Set __qualname__ attribute of CoroWrapper in @coroutine decorator on
...
Python 3.5
- Drop __slots__ optimization of CoroWrapper to be able to set the __qualname__
attribute.
- Add tests on __name__, __qualname__ and __module__ of a coroutine function
and coroutine object.
- Fix test_tasks when run in debug mode (PYTHONASYNCIODEBUG env var set) on
Python 3.3 or 3.4
2014-06-18 01:14:59 +02:00
Victor Stinner
adc7bcb93a
(Merge 3.4) Issue #21723 : asyncio.Queue: support any type of number (ex: float)
...
for the maximum size. Patch written by Vajrasky Kok.
2014-06-17 23:37:35 +02:00
Victor Stinner
66dc6b0f53
Issue #21723 : asyncio.Queue: support any type of number (ex: float) for the
...
maximum size. Patch written by Vajrasky Kok.
2014-06-17 23:36:21 +02:00
Benjamin Peterson
2ce54c2912
merge 3.4
2014-06-16 23:16:37 -07:00
Benjamin Peterson
9db281662d
merge 3.3
2014-06-16 23:16:31 -07:00
Benjamin Peterson
0fd3972a3f
merge 3.2
2014-06-16 23:16:06 -07:00
Benjamin Peterson
314dc126ce
expect the correct platform-dependent linesep
2014-06-16 23:15:50 -07:00
Victor Stinner
0f69e76204
(Merge 3.4) Issue #21773 : Fix TestStdLib.test_pydoc() of test_enum. Patch
...
written by Claudiu Popa.
The print_diffs() function was not defined, using the assertEqual() is more
reliable.
2014-06-16 22:51:36 +02:00
Victor Stinner
4b0432d190
Issue #21773 : Fix TestStdLib.test_pydoc() of test_enum. Patch written by
...
Claudiu Popa.
The print_diffs() function was not defined, using the assertEqual() is more
reliable.
2014-06-16 22:48:43 +02:00
Victor Stinner
11a584f9ec
(Merge 3.4) Sync asyncio with Tulip: Fix test_tasks for Python 3.5
...
On Python 3.5, generator now gets their name from the function, no more from
the code. So we get the expected "notmuch" name instead of the generic "coro"
name.
2014-06-16 17:12:39 +02:00
Victor Stinner
4802c6ee55
Sync asyncio with Tulip: Fix test_tasks for Python 3.5
...
On Python 3.5, generator now gets their name from the function, no more from
the code. So we get the expected "notmuch" name instead of the generic "coro"
name.
2014-06-16 17:11:05 +02:00
Victor Stinner
7db27c8ed6
Issue #21205 : Fix unit tests
2014-06-16 16:21:57 +02:00
Victor Stinner
40ee30181f
Issue #21205 : Add a new ``__qualname__`` attribute to generator, the qualified
...
name, and use it in the representation of a generator (``repr(gen)``). The
default name of the generator (``__name__`` attribute) is now get from the
function instead of the code. Use ``gen.gi_code.co_name`` to get the name of
the code.
2014-06-16 15:59:28 +02:00
Nick Coghlan
26171993fe
Merge issue #21669 from 3.4
2014-06-16 19:49:12 +10:00
Nick Coghlan
5b1fdc1e37
Issue #21669 : Special case print & exec syntax errors
2014-06-16 19:48:02 +10:00
Gregory P. Smith
8ff4dfe857
fix a BytesWarning in my previous commit.
2014-06-15 20:17:23 -07:00
Gregory P. Smith
9204e09178
fix a BytesWarning in my previous commit.
2014-06-15 20:16:01 -07:00
Gregory P. Smith
1016a6100b
Isolate the subprocess test_close_fds_when_max_fd_is_lowered test so
...
that the rlimit calls happens in a child process rather than the
TestCase process to attempt to fix the gentoo buildbot's "Too many
open files" error.
2014-06-15 17:52:26 -07:00
Gregory P. Smith
634aa68c2b
Isolate the subprocess test_close_fds_when_max_fd_is_lowered test so
...
that the rlimit calls happens in a child process rather than the
TestCase process to attempt to fix the gentoo buildbot's "Too many
open files" error.
2014-06-15 17:51:04 -07:00
Raymond Hettinger
f46933a42f
merge
2014-06-15 14:50:39 -07:00
Raymond Hettinger
92a4055343
Issue #21774 : Fix incorrect variable in xml.dom.minidom
2014-06-15 14:48:19 -07:00
Raymond Hettinger
badf5d839d
Issue 19898: Add test for dequereviter_new.
...
(Patch contributed by Claudiu Popa.)
2014-06-14 20:41:22 -07:00
Benjamin Peterson
ff180af057
merge 3.4 ( #21766 )
2014-06-14 18:41:31 -07:00
Benjamin Peterson
a8c75fe31a
merge 3.3 ( #21766 )
2014-06-14 18:41:13 -07:00
Benjamin Peterson
6cd1954c5c
merge 3.2 ( #21766 )
2014-06-14 18:40:10 -07:00
Benjamin Peterson
73b8b1cdb8
url unquote the path before checking if it refers to a CGI script ( closes #21766 )
2014-06-14 18:36:29 -07:00
Raymond Hettinger
48f68d00b8
Factor common code into internal functions.
...
Clean-up names of static functions.
Use Py_RETURN_NONE macro.
Expose private functions needed to support merge().
Move C imports to the bottom of the Python file.
2014-06-14 16:43:35 -07:00
Terry Jan Reedy
cd41e89377
Merge with 3.4
2014-06-13 15:21:01 -04:00
Terry Jan Reedy
a40e6b0c94
Issue #21730 : Add no-thread skip in test_socket. Patch by Berker Peksag.
2014-06-13 15:20:45 -04:00
Terry Jan Reedy
eba3633f34
Merge with 3.4
2014-06-13 14:23:57 -04:00
Terry Jan Reedy
bc7c96b9ea
Issue #20043 : Add direct test for _thread.
2014-06-13 14:23:43 -04:00
Antoine Pitrou
9e82b17e9d
Issue #21711 : support for "site-python" directories has now been removed from the site module (it was deprecated in 3.4).
2014-06-12 19:41:30 -04:00
Victor Stinner
e7efff5bb8
(Merge 3.4) asyncio: Tulip issue 173: Enhance repr(Handle) and repr(Task)
...
repr(Handle) is shorter for function: "foo" instead of "<function foo at
0x...>". It now also includes the source of the callback, filename and line
number where it was defined, if available.
repr(Task) now also includes the current position in the code, filename and
line number, if available. If the coroutine (generator) is done, the line
number is omitted and "done" is added.
2014-06-12 18:39:42 +02:00
Victor Stinner
307bccc6ff
asyncio: Tulip issue 173: Enhance repr(Handle) and repr(Task)
...
repr(Handle) is shorter for function: "foo" instead of "<function foo at
0x...>". It now also includes the source of the callback, filename and line
number where it was defined, if available.
repr(Task) now also includes the current position in the code, filename and
line number, if available. If the coroutine (generator) is done, the line
number is omitted and "done" is added.
2014-06-12 18:39:26 +02:00
R David Murray
130a566a13
Suppress a couple more DeprecationWarnings in the test suite.
2014-06-11 17:09:43 -04:00
R David Murray
475a476237
Eliminate DeprecationWarning in test_concurrent_futures.
2014-06-11 16:25:05 -04:00
R David Murray
1351ee704b
#14758 : Fix the fix (fix getaddrinfo in mock_socket)
...
I forgot to run all the affected tests when I fixed smtpd.
2014-06-11 16:10:10 -04:00
R David Murray
6ffface429
#19840 : Add copy_function to shutil.move.
...
Patch by Claudiu Popa.
2014-06-11 14:40:13 -04:00
R David Murray
6fe56a329d
#14758 : add IPv6 support to smtpd.
...
Patch by Milan Oberkirch.
2014-06-11 13:48:58 -04:00
R David Murray
1144da5821
#19662 : Eliminate warnings in other test modules that use smtpd.
...
Eventually these will want to convert to decode_data=False, I think.
2014-06-11 12:27:40 -04:00
R David Murray
554bcbf1b9
#19662 : add decode_data to smtpd so you can get at DATA in bytes form.
...
Otherwise smtpd is restricted to 7bit clean data, since even if the
incoming data is actually utf-8, it will often break things to decode
it before parsing the message.
Patch by Maciej Szulik, with some adjustments (mostly the warning
support).
2014-06-11 11:18:08 -04:00
Giampaolo Rodola'
915d14190e
fix issue #17552 : add socket.sendfile() method allowing to send a file over a socket by using high-performance os.sendfile() on UNIX. Patch by Giampaolo Rodola'·
2014-06-11 03:54:30 +02:00
Serhiy Storchaka
b398d33c65
Issue #18039 : dbm.dump.open() now always creates a new database when the
...
flag has the value 'n'. Patch by Claudiu Popa.
2014-06-10 21:16:00 +03:00
Victor Stinner
bb2fc5b2a5
Issue #21326 : Add a new is_closed() method to asyncio.BaseEventLoop
...
Add BaseEventLoop._closed attribute and use it to check if the event loop was
closed or not, instead of checking different attributes in each subclass of
BaseEventLoop.
run_forever() and run_until_complete() methods now raise a RuntimeError('Event loop is
closed') exception if the event loop was closed.
BaseProactorEventLoop.close() now also cancels "accept futures".
2014-06-10 10:23:10 +02:00
Serhiy Storchaka
3a56117a60
Issue #21310 : Fixed possible resource leak in failed open().
2014-06-09 13:35:43 +03:00
Serhiy Storchaka
f10063e3c3
Issue #21310 : Fixed possible resource leak in failed open().
2014-06-09 13:32:34 +03:00
Serhiy Storchaka
85e4235c0e
Issue #21677 : Fixed chaining nonnormalized exceptions in io close() methods.
2014-06-09 09:15:42 +03:00
Serhiy Storchaka
8a8f7f9830
Issue #21677 : Fixed chaining nonnormalized exceptions in io close() methods.
2014-06-09 09:13:04 +03:00
Benjamin Peterson
4fb01ffe66
backout 0fb7789b5eeb for test breakage ( #20578 )
2014-06-07 23:18:12 -07:00
Benjamin Peterson
eac219436c
merge 3.4 ( #11709 )
2014-06-07 20:17:29 -07:00
Benjamin Peterson
159824ea2a
make sure the builtin help function doesn't fail when sys.stdin is not a valid file ( closes #11709 )
...
Original patch by Amaury Forgeot d'Arc with a test by bdettmer.
2014-06-07 20:14:26 -07:00
Benjamin Peterson
10e847bbc7
add BufferedIOBase.readinto1 ( closes #20578 )
...
Patch by Nikolaus Rath.
2014-06-07 20:06:48 -07:00
Benjamin Peterson
9d19da701d
merge 3.4 ( #13223 )
2014-06-07 16:47:15 -07:00
Benjamin Peterson
ed1160b39c
don't remove self from example code in the HTML output ( closes #13223 )
...
Patch by Víctor Terrón.
2014-06-07 16:44:00 -07:00
Benjamin Peterson
edb07d28fb
merge 3.4 ( #21463 )
2014-06-07 15:09:36 -07:00
Benjamin Peterson
3c2dca67ac
in ftp cache pruning, avoid changing the size of a dict while iterating over it ( closes #21463 )
...
Patch by Skyler Leigh Amador.
2014-06-07 15:08:04 -07:00
Benjamin Peterson
3e439797ba
merge 3.4 ( #21642 )
2014-06-07 12:39:51 -07:00
Benjamin Peterson
c416162302
allow the keyword else immediately after (no space) an integer ( closes #21642 )
2014-06-07 12:36:39 -07:00
Guido van Rossum
2aebd4a816
Replace deprecated time.clock() with time.time(). Fixes issue #20475 .
2014-06-04 11:45:05 -07:00
Victor Stinner
17f3663497
Issue #21326 : Add asyncio.BaseEventLoop.is_closed() method
...
Add BaseEventLoop._closed attribute and use it to check if the event loop was
closed or not, instead of checking different attributes in each subclass of
BaseEventLoop.
run_forever() and run_until_complete() now raises a RuntimeError('Event loop is
closed') exception if the event loop was closed.
BaseProactorEventLoop.close() now also cancels "accept futures".
2014-06-04 01:06:24 +02:00
Victor Stinner
8526a945a0
(Merge 3.4) Fix asyncio tests on Windows: wait for the subprocess exit
...
Before, regrtest failed to remove the temporary test directory because the
process was still running in this directory.
2014-06-04 00:42:17 +02:00
Victor Stinner
3f9535b7f8
Fix asyncio tests on Windows: wait for the subprocess exit
...
Before, regrtest failed to remove the temporary test directory because the
process was still running in this directory.
2014-06-04 00:42:04 +02:00
Victor Stinner
c3816b70e0
(Merge 3.4) Issue #21651 : Fix ResourceWarning when running asyncio tests on
...
Windows. Patch written by Claudiu Popa.
2014-06-04 00:23:43 +02:00
Victor Stinner
27d411255a
Issue #21651 : Fix ResourceWarning when running asyncio tests on Windows.
...
Patch written by Claudiu Popa.
2014-06-04 00:23:26 +02:00
Victor Stinner
b18b2d797b
(Merge 3.4) cleanup test_asyncio/test_base_events.py: cm variable was unused
2014-06-04 00:19:21 +02:00
Victor Stinner
8551e0f3e0
cleanup test_asyncio/test_base_events.py: cm variable was unused
2014-06-04 00:18:41 +02:00
Victor Stinner
b470f0dd2a
Merge 3.4: Issue #21119 , fix ResourceWarning in asyncio
...
* Make sure that socketpair() close sockets on error. Close the listening
socket if sock.bind() raises an exception.
* asyncio now closes sockets on errors. Fix ResourceWarning:
create_connection(), create_datagram_endpoint() and create_unix_server()
methods of event loop now close the newly created socket on error.
2014-06-04 00:13:31 +02:00
Victor Stinner
a9fa2664ab
Issue #21119 : asyncio: Make sure that socketpair() close sockets on error
...
Close the listening socket if sock.bind() raises an exception.
2014-06-04 00:12:28 +02:00
Victor Stinner
223a624158
Issue #21119 : asyncio now closes sockets on errors
...
Fix ResourceWarning: create_connection(), create_datagram_endpoint() and
create_unix_server() methods of event loop now close the newly created socket
on error.
2014-06-04 00:11:52 +02:00
Vinay Sajip
4e9ae15967
Closes #21643 : Merged fix from 3.4.
2014-06-03 16:48:39 +01:00
Vinay Sajip
b9b965f6dd
Issue #21643 : Updated test and fixed logic bug in lib64 symlink creation.
2014-06-03 16:47:51 +01:00
Zachary Ware
e7e1375e57
Issue #18492 : Merge with 3.4
2014-06-02 16:04:25 -05:00
Zachary Ware
66f2928479
Issue #18492 : Allow all resources when tests are not run by regrtest.py.
...
This changeset also includes cleanup allowed by this behavior change.
2014-06-02 16:01:29 -05:00
Victor Stinner
aa0e7afa43
Issue #21639 : Fix a division by zero in tracemalloc on calloc(0, 0). The
...
regression was introduced recently with the introduction of the new "calloc"
functions (PyMem_RawCalloc, PyMem_Calloc, PyObject_Calloc).
Add also a unit test to check for the non-regression.
2014-06-02 21:40:22 +02:00
Victor Stinner
8dd49fe09f
Issue #21639 : Add a test to check that PyMem_Malloc(0) with tracemalloc enabled
...
does not crash.
2014-06-02 21:36:59 +02:00
Victor Stinner
8ff373714c
(Merge 3.4) Issue #21636 : Fix test_logging, skip UNIX stream (AF_UNIX) tests on
...
Windows. Patch written by Claudiu Popa.
2014-06-02 14:43:24 +02:00
Victor Stinner
ec5a860e60
Issue #21636 : Fix test_logging, skip UNIX stream (AF_UNIX) tests on Windows.
...
Patch written by Claudiu Popa.
2014-06-02 14:41:51 +02:00
Victor Stinner
f849f46487
(Merge 3.4) Issue #21634 : Fix pystone micro-benchmark: use floor division
...
instead of true division to benchmark integers instead of floating point
numbers. Set pystone version to 1.2. Patch written by Lennart Regebro.
2014-06-02 14:18:15 +02:00
Victor Stinner
d4d39c761c
Issue #21634 : Fix pystone micro-benchmark: use floor division instead of true
...
division to benchmark integers instead of floating point numbers. Set pystone
version to 1.2. Patch written by Lennart Regebro.
2014-06-02 14:16:44 +02:00
Gregory P. Smith
f2538e1bae
Skip test_subprocess test_close_fds_when_max_fd_is_lowered on FreeBSD
...
when fdescfs is not mounted on /dev/fd.
2014-06-01 15:28:11 -07:00
Gregory P. Smith
d04f699498
Skip test_subprocess test_close_fds_when_max_fd_is_lowered on FreeBSD
...
when fdescfs is not mounted on /dev/fd.
2014-06-01 15:27:28 -07:00
Gregory P. Smith
69b778df5d
Attempt to fix the "too many open files" errors on several of the
...
buildbots that the new test_close_fds_when_max_fd_is_lowered test causes.
It now leaves 10 more low fd's available.
2014-06-01 15:16:16 -07:00
Gregory P. Smith
8fed4deb44
Attempt to fix the "too many open files" errors on several of the
...
buildbots that the new test_close_fds_when_max_fd_is_lowered test causes.
It now leaves 10 more low fd's available.
2014-06-01 15:15:44 -07:00
Gregory P. Smith
45f31d1492
merge the end_fd comment fix and explicit wait() for the child.
2014-06-01 13:47:34 -07:00
Gregory P. Smith
ffd529cde1
Explicitly wait for the child instead of letting a destructor do it.
2014-06-01 13:46:54 -07:00
Gregory P. Smith
3fe9e8d5a5
Don't restrict ourselves to a "max" fd when closing fds before exec()
...
when we have a way to get an actual list of all open fds from the OS.
Fixes issue #21618 : The subprocess module would ignore fds that were
inherited by the calling process and already higher than POSIX resource
limits would otherwise allow. On systems with a functioning /proc/self/fd
or /dev/fd interface the max is now ignored and all fds are closed.
2014-06-01 13:22:12 -07:00
Gregory P. Smith
d4dcb70287
Don't restrict ourselves to a "max" fd when closing fds before exec()
...
when we have a way to get an actual list of all open fds from the OS.
Fixes issue #21618 : The subprocess module would ignore fds that were
inherited by the calling process and already higher than POSIX resource
limits would otherwise allow. On systems with a functioning /proc/self/fd
or /dev/fd interface the max is now ignored and all fds are closed.
2014-06-01 13:18:28 -07:00
Vinay Sajip
1feedb43be
Closes #21583 : Improved test_logging. Thanks to Diana Joan Clarke for the patch.
2014-05-31 08:19:12 +01:00
Brett Cannon
2a17bde930
Issue #20383 : Introduce importlib.util.module_from_spec().
...
Along the way, dismantle importlib._bootstrap._SpecMethods as it was
no longer relevant and constructing the new function required
partially dismantling the class anyway.
2014-05-30 14:55:29 -04:00
Serhiy Storchaka
17158306d8
Test correct getXXX methods in Tkinter bigmem tests.
...
Tk.getint is just int, true Tk wrapper is available as Tk.tk.getint.
2014-05-30 15:55:12 +03:00
Serhiy Storchaka
aecfa9ead9
Test correct getXXX methods in Tkinter bigmem tests.
...
Tk.getint is just int, true Tk wrapper is available as Tk.tk.getint.
2014-05-30 15:54:35 +03:00
Serhiy Storchaka
1753d2255e
Issue #21552 : Fixed possible integer overflow of too long string lengths in
...
the tkinter module on 64-bit platforms.
2014-05-30 14:25:22 +03:00
Serhiy Storchaka
79851d755b
Issue #21552 : Fixed possible integer overflow of too long string lengths in
...
the tkinter module on 64-bit platforms.
2014-05-30 14:24:03 +03:00
Serhiy Storchaka
88c56cbba5
Add tests for getint, getdouble and getboolean methods of the tkapp object.
2014-05-30 14:08:49 +03:00
Serhiy Storchaka
9f1f4f40e4
Add tests for getint, getdouble and getboolean methods of the tkapp object.
2014-05-30 14:07:38 +03:00
Raymond Hettinger
35db43955c
Issue #13742 : Add key and reverse parameters to heapq.merge()
2014-05-30 02:28:36 -07:00
Gregory P. Smith
e7bfe13635
Fix issue #14315 : The zipfile module now ignores extra fields in the central
...
directory that are too short to be parsed instead of letting a struct.unpack
error bubble up as this "bad data" appears in many real world zip files in the
wild and is ignored by other zip tools.
2014-05-29 23:42:47 -07:00
Gregory P. Smith
0af8a86be8
Fix issue #14315 : The zipfile module now ignores extra fields in the central
...
directory that are too short to be parsed instead of letting a struct.unpack
error bubble up as this "bad data" appears in many real world zip files in the
wild and is ignored by other zip tools.
2014-05-29 23:42:14 -07:00
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
Giampaolo Rodola'
8af740c46a
fix isuse #13248 : remove previously deprecated asyncore.dispatcher __getattr__ cheap inheritance hack.
2014-04-29 02:03:40 +02:00
Antoine Pitrou
05da1ef40a
Issue #18727 : improve test coverage of the csv module by testing for DictWriter.writerows.
...
Patch by Muhammad Jehanzeb.
2014-04-29 01:58:06 +02:00
Antoine Pitrou
6999441d62
Issue #20355 : -W command line options now have higher priority than the PYTHONWARNINGS environment variable. Patch by Arfrever.
2014-04-29 00:56:08 +02:00
Antoine Pitrou
c695c95626
Issue #19940 : ssl.cert_time_to_seconds() now interprets the given time string in the UTC timezone (as specified in RFC 5280), not the local timezone.
...
Patch by Akira.
2014-04-28 20:57:36 +02:00
Antoine Pitrou
3a74ce2088
Issue #13204 : Calling sys.flags.__new__ would crash the interpreter, now it raises a TypeError.
2014-04-28 13:08:28 +02:00
Antoine Pitrou
871dfc41d3
Issue #13204 : Calling sys.flags.__new__ would crash the interpreter, now it raises a TypeError.
2014-04-28 13:07:06 +02:00
Guido van Rossum
6cd08d6277
Merge 3.4 -> default: asyncio: Add __weakref__ slots to Handle and CoroWrapper. Upstream issue #166 .
2014-04-27 10:44:46 -07:00
Guido van Rossum
94ba146d11
asyncio: Add __weakref__ slots to Handle and CoroWrapper. Upstream issue #166 .
2014-04-27 10:44:22 -07:00
Tim Golden
fbf963c064
Backed out changeset: 17df50df62c7
2014-04-27 18:35:36 +01:00
Tim Golden
4675d798bf
Issue #18314 os.unlink will now remove junction points on Windows. Patch by Kim Gräsman.
2014-04-27 18:00:10 +01:00
Benjamin Peterson
4453cf576a
merge 3.4 ( #19385 )
2014-04-26 16:57:11 -04:00
Benjamin Peterson
e3083d3ad5
make operations on closed dumb databases raise a consistent exception ( closes #19385 )
...
Patch by Claudiu Popa.
2014-04-26 16:56:52 -04:00
Antoine Pitrou
4432cf45c6
Issue #21207 : Detect when the os.urandom cached fd has been closed or replaced, and open it anew.
2014-04-26 14:35:19 +02:00
Antoine Pitrou
e472aeafc3
Issue #21207 : Detect when the os.urandom cached fd has been closed or replaced, and open it anew.
2014-04-26 14:33:03 +02:00
Benjamin Peterson
1184e266b9
do not override errors from descriptors on modules
2014-04-24 19:29:23 -04:00
Ethan Furman
7b9ff0e6da
Issue8297: module attribute lookup failures now include module name in error message.
2014-04-24 14:47:47 -07:00
Zachary Ware
7101cb07ef
Closes #21346 : Merge with 3.4
2014-04-24 13:22:47 -05:00
Zachary Ware
dca807b8f5
Issue #21346 : Fix typo, make message consistent in test_itertools.
...
Pointed out by Brian Kearns.
2014-04-24 13:22:05 -05:00
Gregory P. Smith
e7460ac378
fix the test on windows which has different return codes from killed
...
children.
2014-04-23 08:39:02 -07:00
Gregory P. Smith
ab2719f904
fix the test on windows which has different return codes from killed
...
children.
2014-04-23 08:38:36 -07:00
Gregory P. Smith
b218863012
subprocess's Popen.wait() is now thread safe so that multiple threads
...
may be calling wait() or poll() on a Popen instance at the same time
without losing the Popen.returncode value. Fixes issue #21291 .
2014-04-23 00:38:22 -07:00
Gregory P. Smith
d65ba51e24
subprocess's Popen.wait() is now thread safe so that multiple threads
...
may be calling wait() or poll() on a Popen instance at the same time
without losing the Popen.returncode value. Fixes issue #21291 .
2014-04-23 00:27:17 -07:00
Antoine Pitrou
711ee2512e
Issue #21127 : Path objects can now be instantiated from str subclass instances (such as numpy.str_).
...
Thanks to Antony Lee for the report and preliminary patch.
2014-04-23 00:34:51 +02:00
Antoine Pitrou
cb5ec77d33
Issue #21127 : Path objects can now be instantiated from str subclass instances (such as numpy.str_).
...
Thanks to Antony Lee for the report and preliminary patch.
2014-04-23 00:34:15 +02:00
Senthil Kumaran
f4faef4c11
merge 3.4
...
urllib.response object to use _TemporaryFileWrapper (and _TemporaryFileCloser)
facility. Provides a better way to handle file descriptor close.
Address issue #15002 . Patch contributed by Christian Theune.
2014-04-20 09:45:00 -07:00
Senthil Kumaran
6117e5d8e3
urllib.response object to use _TemporaryFileWrapper (and _TemporaryFileCloser)
...
facility. Provides a better way to handle file descriptor close.
Address issue #15002 . Patch contributed by Christian Theune.
2014-04-20 09:41:29 -07:00
R David Murray
4eef074e4c
Merge: #12220 : improve minidom error when URI contains spaces.
2014-04-20 00:48:25 -04:00
R David Murray
9077d24d7f
#12220 : improve minidom error when URI contains spaces.
...
Fix by 'amathew', test by Marek Stepniowski.
2014-04-20 00:46:05 -04:00
Antoine Pitrou
0f1155c6cc
Issue #7221 : remove redundant tests in test_asyncore. Patch by Jessica McKellar.
2014-04-19 21:07:16 +02:00
Eric Snow
31e9f7cb0f
Merge from 3.4.
2014-04-19 00:14:54 -06:00
Eric Snow
658af31372
Issue #21200 : Return None from pkgutil.get_loader() when __spec__ is missing.
2014-04-19 00:13:23 -06:00
Antoine Pitrou
172f025bed
Issue #21068 : The ssl.PROTOCOL* constants are now enum members.
2014-04-18 20:33:08 +02:00
Philip Jenvey
1226db4651
fix the description of bytes tests
2014-04-18 11:10:50 -07:00
Guido van Rossum
0cbc76880f
asyncio: Add gi_{frame,running,code} properties to CoroWrapper (upstream #163 ).
2014-04-15 12:06:34 -07:00
doko@ubuntu.com
4a173bc4ed
Fixes for KFreeBSD and the Hurd:
...
- Issue #21274 : Define PATH_MAX for GNU/Hurd in Python/pythonrun.c.
- Issue #21276 : posixmodule: Don't define USE_XATTRS on KFreeBSD and the Hurd.
- Issue #21275 : Fix a socket test on KFreeBSD.
2014-04-17 19:47:16 +02:00
Benjamin Peterson
fa873f66c6
remove superfluous and useless line
2014-04-16 16:16:37 -04:00
Benjamin Peterson
c844b00dec
use the called property of the run_pip mock rather than an assertion method that doesn't exist
2014-04-16 16:06:39 -04:00
Antoine Pitrou
c043061667
Try to fix buildbot failures on old OpenSSLs (< 1.0.0) - followup to issue #21015
2014-04-16 18:33:39 +02:00
Andrew Kuchling
45278a898c
#1704474 : mark refleak test as specific to CPython
...
Patch by Christian Hudon.
2014-04-15 16:44:43 -04:00
Senthil Kumaran
d943fdee87
Run test_urllib2_localnet tests using unittest.main().
...
Capture threads in the setUpModule and cleanup threads in the tearDownModule.
2014-04-15 16:36:43 -04:00
Guido van Rossum
2e2c05c2a1
asyncio: Add gi_{frame,running,code} properties to CoroWrapper (upstream #163 ).
2014-04-15 12:06:34 -07:00
doko@ubuntu.com
dc282134ee
- Merge 3.4
2014-04-17 19:49:00 +02:00
Antoine Pitrou
617c4dc304
Add a --ciphers option to Lib/test/ssl_servers.py
2014-04-17 12:30:14 +02:00
Antoine Pitrou
05649f39ec
Use ssl.create_default_context in Lib/test/ssl_servers.py
2014-04-17 12:21:36 +02:00
Benjamin Peterson
3ae4f992d7
merge 3.4
2014-04-16 16:17:16 -04:00
Benjamin Peterson
b581ae9030
merge 3.4
2014-04-16 16:07:49 -04:00
Antoine Pitrou
94a5b663bf
Issue #20896 : ssl.get_server_certificate() now uses PROTOCOL_SSLv23, not PROTOCOL_SSLv3, for maximum compatibility.
2014-04-16 18:56:28 +02:00
Antoine Pitrou
0fba0c3ebf
Try to fix buildbot failures on old OpenSSLs (< 1.0.0) - followup to issue #21015
2014-04-16 18:34:01 +02:00
Eric V. Smith
a12572ff3a
Close issue #8931 : Make alternate formatting for 'c' raise an exception. Patch by Torsten Landschoff.
2014-04-15 22:37:55 -04:00
Andrew Kuchling
42a17fa4fd
Merge from 3.4
2014-04-15 21:21:56 -04:00
Stefan Krah
27adf44690
Merge.
2014-04-15 22:41:36 +02:00
Stefan Krah
63c4b24900
Skip test_enums in the absence of threading.
2014-04-15 22:40:06 +02:00
Senthil Kumaran
29e2493f36
merge 3.4
2014-04-15 16:37:14 -04:00
doko@ubuntu.com
a3b99a07e6
Merge 3.4 branch.
2014-04-15 20:38:28 +02:00
doko@ubuntu.com
9574355ff3
- Issue #21223 : Pass test_site/test_startup_imports when some of the extensions
...
are built as builtins.
2014-04-15 20:37:54 +02:00
Yury Selivanov
021b27482e
asyncio.tasks: Make sure CoroWrapper.send proxies one argument correctly
...
Issue #21209 .
2014-04-15 12:01:44 -04:00
Yury Selivanov
09cc169a03
asyncio.tasks: Make sure CoroWrapper.send proxies one argument correctly
...
Issue #21209 .
2014-04-15 12:01:16 -04:00
Vinay Sajip
4382ad6e02
Closes #21197 : Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.
2014-04-15 13:56:36 +01:00
Vinay Sajip
809f90f369
Reverted 16efa8d27e4c after discussion with Eric.
2014-04-15 13:52:21 +01:00
Vinay Sajip
1e53f8d9bf
Issue #21197 : Add lib64 -> lib symlink in venvs on 64-bit non-OS X POSIX.
2014-04-15 11:18:10 +01:00
Eric V. Smith
a0d107324d
Closed issue #8931 : Make alternate formatting for 'c' raise an exception. Patch by Torsten Landschoff.
2014-04-15 03:05:02 -04:00
Yury Selivanov
626c7b77cd
syncio.tasks: Fix CoroWrapper to workaround yield-from bug in CPython < 3.4.1
...
Closes issue #21209 .
2014-04-14 22:24:51 -04:00
Yury Selivanov
f15f7484bb
asyncio.tasks: Fix CoroWrapper to workaround yield-from bug in CPython < 3.4.1
...
Closes issue #21209 .
2014-04-14 22:21:52 -04:00
Senthil Kumaran
bfcc5fef9b
merge 3.4
2014-04-14 21:32:13 -04:00
Senthil Kumaran
cfdd0161ac
Invoke test_urllibnet tests using unittest.main function
2014-04-14 21:31:41 -04:00
R David Murray
1976d9bf6d
#15916 : if there are no docstrings, make empty suite, not an error.
...
This makes doctest work like unittest: if the test case is empty, that
just means there are zero tests run, it's not an error. The existing
behavior was broken, since it only gave an error if there were *no*
docstrings, and zero tests run if there were docstrings but none of them
contained tests. So this makes it self-consistent as well.
Patch by Glenn Jones.
2014-04-14 20:28:36 -04:00
R David Murray
4d8eee9705
Merge #17498 : Defer SMTPServerDisconnected errors until the next command.
2014-04-14 18:22:00 -04:00
R David Murray
afb151a5cc
#17498 : Defer SMTPServerDisconnected errors until the next command.
...
Normally an SMTP server will return an error, and smtplib will then issue an
RSET to return the connection to the known starting state. Some servers,
however, disconnect after issuing certain errors. When we issue the RSET,
this would result in raising an SMTPServerDisconnected error, *instead* of
returning the error code the user of the library was expecting. This fix
makes the internal RSET calls ignore the disconnection so that the error code
is returned. The user of the library will then get the SMTPServerDisconnected
error the next time they try to talk to the server.
Patch by Kushal Das.
2014-04-14 18:21:38 -04:00
Senthil Kumaran
2ff5d8103b
merge heads
2014-04-14 16:47:05 -04:00
Senthil Kumaran
6b3e87d38e
merge heads
2014-04-14 16:45:49 -04:00
Eric V. Smith
7ce90743a1
Issue #13598 : Add auto-numbering of replacement fields to string.Formatter.
2014-04-14 16:43:50 -04:00
Senthil Kumaran
dfb2375b81
merge 3.4
...
Convert urllib.request parse_proxy doctests to unittests.
2014-04-14 16:33:21 -04:00
Senthil Kumaran
d8e24f1f71
Convert urllib.request parse_proxy doctests to unittests.
2014-04-14 16:32:20 -04:00
Senthil Kumaran
166214c344
merge from 3.4
...
Issue #7776 : Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel()
Patch by Nikolaus Rath.
2014-04-14 13:10:05 -04:00
Senthil Kumaran
9da047b3a5
Issue #7776 : Fix ``Host:'' header and reconnection when using http.client.HTTPConnection.set_tunnel().
...
Patch by Nikolaus Rath.
2014-04-14 13:07:56 -04:00
Eric V. Smith
ebdaaf4087
Issue #20480 : Add ipaddress.reverse_pointer. Patch by Leon Weber.
2014-04-14 12:58:07 -04:00
Eric V. Smith
280c458f9e
Closes issue #12546 : Allow \x00 as a fill character for builtin type __format__ methods.
2014-04-14 12:08:21 -04:00
Eric V. Smith
2ea9712ee9
Issue #12546 : Allow \x00 as a fill character for builtin type __format__ methods.
2014-04-14 11:55:10 -04:00
Benjamin Peterson
a548a30fed
merge 3.4 ( #21209 )
2014-04-13 23:52:43 -04:00
Benjamin Peterson
f6e50b4a81
fix sending tuples to custom generator objects with yield from ( closes #21209 )
...
Debugged by Victor.
2014-04-13 23:52:01 -04:00
Benjamin Peterson
79f3ef6336
merge 3.4
2014-04-13 22:32:12 -04:00
Benjamin Peterson
584f5cbf16
merge 3.3
2014-04-13 22:31:42 -04:00
Benjamin Peterson
156285c35f
merge 3.2
2014-04-13 22:28:16 -04:00
Benjamin Peterson
99b5afab74
in scan_once, prevent the reading of arbitrary memory when passed a negative index
...
Bug reported by Guido Vranken.
2014-04-13 22:10:38 -04:00
R David Murray
e084e97f9f
Mierge #21169 : fix getpass to use replace error handler on UnicodeEncodeError.
2014-04-13 22:09:29 -04:00
R David Murray
d5aa487cce
#21169 : fix getpass to use replace error handler on UnicodeEncodeError.
...
If the input stream encoding couldn't encode one or more of the
non-ascii characters in the prompt, it would fail, throwing a
UnicodeEncodeError. Now if that happens we re-encoding using the
'replace' error handler.
Patch by Kushal Das.
2014-04-13 22:07:39 -04:00
Benjamin Peterson
f84200ffc7
test the change of #21193 correctly
2014-04-11 15:37:18 -04:00
Mark Dickinson
0c346d827d
Issue #21193 : Make (e.g.,) pow(2, -3, 5) raise ValueError rather than TypeError. Patch by Josh Rosenberg.
2014-04-11 14:34:40 -04:00
Mark Dickinson
5990d2864c
Issue #20539 : Improve math.factorial error messages and types for large inputs.
...
- Better message for the OverflowError in large positive inputs.
- Changed exception type from OverflowError to ValueError for large negative inputs.
2014-04-10 09:29:39 -04:00