[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Ilya Kulakov
Ilya Kulakov added the comment: Yury, that would do it. Guido, that's indeed might be an anti-pattern. But it looks like passing event loop around is just a worse version of it. -- ___ Python tracker

[issue26911] lib2to3/tests/pytree_idempotency.py does not run

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: (Import errors are runtime errors, not compile errors.) After 'import lib2to3.pgen2', 'pgen2' in the code would not be valid. A 'from' import is needed instead. I fixed the import for 3.5/6 (but not 2.7), but the file still does not run. File "F:\Python\d

[issue26939] android: test_functools hangs on armv7

2016-05-06 Thread Xavier de Gaye
Xavier de Gaye added the comment: Forgot to say that the backtraces for test_threading and test_importlib were obtained with the patch applied while they were hanging. -- ___ Python tracker ___

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Ilya Kulakov
Ilya Kulakov added the comment: > Update some places in asyncio where we currently use "get_event_loop()", such > as Future constructor, Task.current_task, etc. Yury, do you have an idea how it could be done? -- ___ Python tracker

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread R. David Murray
R. David Murray added the comment: The way I avoid the errors of failing to always pass the loop through in my application library, currently, is to run my tests in a thread with no event loop set up, so that get_event_loop will raise an error. Take that for what it is worth, since I don't cl

[issue22234] urllib.parse.urlparse accepts any falsy value as an url

2016-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Luiz for your testing. > __main__:1: DeprecationWarning: Use of '' is deprecated It is bad that a warning is emitted for default value. > Will bytes be deprecated if used as a default_schema? No, only using empty bytes schema with string url is de

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Yury Selivanov
Yury Selivanov added the comment: >> Update some places in asyncio where we currently use "get_event_loop()", >> such as Future constructor, Task.current_task, etc. > Yury, do you have an idea how it could be done? I think I do. To keep the backwards compatibility, we'll need to update the "

[issue16113] Add SHA-3 and SHAKE (Keccak) support

2016-05-06 Thread Christian Heimes
Changes by Christian Heimes : -- hgrepos: -152 ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: https://mail.py

[issue26912] Broken imports in test/test_email/torture_test.py, test_asian_codecs.py) has a broken import

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: As with #26911, no 'test_' prefix means 'run by hand'. I will make the two simple fixes, as well as delete 'from types import ListType' (ListType is list, and removed in 3.x). But I will not try to run the torture test, hence no guarantee that it will run af

[issue16113] Add SHA-3 and SHAKE (Keccak) support

2016-05-06 Thread Christian Heimes
Christian Heimes added the comment: This patch implements SHA-3 and SHAKE for Python 3.6. The algorithm is provided by a slightly modified copy of the Keccak Code Package. I had to replace C++ comments and perform some minor cleanups. -- stage: needs patch -> patch review Added file:

[issue26912] Broken imports in test/test_email/torture_test.py, test_asian_codecs.py) has a broken import

2016-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset e7da216ba17c by Terry Jan Reedy in branch '3.5': Issue 26912: fix broken imports in test_email package. https://hg.python.org/cpython/rev/e7da216ba17c -- nosy: +python-dev ___ Python tracker

[issue26912] Broken imports in test/test_email/torture_test.py, test_asian_codecs.py) has a broken import

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I also removed try to import the deleted support.TestSkipped. I temporarily commented out the SkipTest replacement so the module would run, create the test class, run it, and fail. I believe the import of run_unittest and the associated test_main, etc, can be

[issue26911] lib2to3/tests/pytree_idempotency.py has broken imports

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: I decided that I should leave the scope of this issue as it was and close it as fixed. -- assignee: -> terry.reedy resolution: -> fixed stage: needs patch -> resolved status: open -> closed title: lib2to3/tests/pytree_idempotency.py does not run -> l

[issue26969] ascynio should provide a policy to address pass-loop-everywhere problem

2016-05-06 Thread Guido van Rossum
Guido van Rossum added the comment: FWIW asyncio's own test suite makes sure that the loop is indeed passed everywhere by setting the default loop to None. If a library chooses to pass the loop around like this it should structure its tests the same way. -- _

[issue26934] android: test_faulthandler fails

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: The 8 failures are all because exitcode is 0 when it should not be. self.assertNotEqual(exitcode, 0) AssertionError: 0 == 0 -- nosy: +terry.reedy ___ Python tracker __

[issue26889] Improve Doc/library/xmlrpc.client.rst

2016-05-06 Thread Terry J. Reedy
Terry J. Reedy added the comment: The corrected link works. I agree with deleting a bad sentence if you cannot fix it. I think you can go ahead and apply as is. -- ___ Python tracker

[issue22107] tempfile module misinterprets access denied error on Windows

2016-05-06 Thread Eryk Sun
Eryk Sun added the comment: The Windows API loses information when mapping kernel status values to Windows error codes. For example, the following status values are all mapped to ERROR_ACCESS_DENIED: STATUS_INVALID_LOCK_SEQUENCE 0xc01e STATUS_INVALID_VIEW_SIZE 0xc01f

[issue26889] Improve Doc/library/xmlrpc.client.rst

2016-05-06 Thread Roundup Robot
Roundup Robot added the comment: New changeset 04250fc723e6 by Serhiy Storchaka in branch '3.5': Issue #26889: Tweaked xmlrpc.client documentation. https://hg.python.org/cpython/rev/04250fc723e6 New changeset 9bdec549bad3 by Serhiy Storchaka in branch 'default': Issue #26889: Tweaked xmlrpc.clie

[issue26889] Improve Doc/library/xmlrpc.client.rst

2016-05-06 Thread Serhiy Storchaka
Serhiy Storchaka added the comment: Thank you Terry. -- resolution: -> fixed stage: patch review -> resolved status: open -> closed versions: +Python 2.7 ___ Python tracker ___

[issue17765] weakref.ref ignores a 'callback' keyword argument

2016-05-06 Thread Serhiy Storchaka
Changes by Serhiy Storchaka : -- assignee: -> georg.brandl ___ Python tracker ___ ___ Python-bugs-list mailing list Unsubscribe: htt

<    1   2