[issue25272] asyncio tests are getting noisy

2015-12-17 Thread Yury Selivanov

Yury Selivanov added the comment:

I think I've fixed all of these:

https://github.com/python/asyncio/commit/cd4fdbb9ccd7c41a4e7c6b416bb2481ab0e21e1c
https://github.com/python/asyncio/commit/1365ac3a37836c6ec50138df8d64a87cdd0ac494
https://github.com/python/asyncio/commit/ae30b2b4244f1526d422500a1313c0c3dfd72dfe
https://github.com/python/asyncio/commit/5672730e26c555485447694e576c98d2a49341b9

I also updated asyncio/runtests.py to print out all warnings:

https://github.com/python/asyncio/commit/f25127c24aa8ca94960b5c012eb72afcef14403a

Closing this issue.

--
resolution:  -> fixed
status: open -> closed

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25272] asyncio tests are getting noisy

2015-10-01 Thread Guido van Rossum

Guido van Rossum added the comment:

Or call gc.collect() in that TestCase.setUp()?

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25272] asyncio tests are getting noisy

2015-10-01 Thread STINNER Victor

STINNER Victor added the comment:

> Executing  coro= /media/disk/home/proj/python/cpython/Lib/test/test_asyncio/test_pep492.py:146>
>  result=None created at 
> /media/disk/home/proj/python/cpython/Lib/asyncio/base_events.py:323> took 
> 0.177 seconds

This one is trivial to fix: set loop.slow_callback_duration to 1.0
(second) or more in TestCase.set_event_loop() of asyncio.test_utils.

--

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25272] asyncio tests are getting noisy

2015-09-30 Thread Martin Panter

Martin Panter added the comment:

Another source of noise is this warning about a task being slow to respond. I 
briefly investigated this a while back. I concluded that it only happens when 
other tests are run before it; it does not happen when test_asyncio is run 
alone. It is caused by the garbage collector, because I was able to stop it by 
invoking gc.collect() at a particular point in the test.

$ make -s -j2 && LC_TIME= ./python -bWall -m test -j0
[. . .]
[ 36/399] test_bytes
[ 37/399] test_bz2 -- running: test_buffer (32 sec), test_asyncore (42 sec), 
test_asyncio (44 sec)
[ 38/399] test_buffer (33 sec) -- running: test_asyncore (43 sec), test_asyncio 
(45 sec)
[ 39/399] test_asyncio (44 sec) -- running: test_asyncore (43 sec)
Executing .start() done, defined at 
/media/disk/home/proj/python/cpython/Lib/test/test_asyncio/test_pep492.py:146> 
result=None created at 
/media/disk/home/proj/python/cpython/Lib/asyncio/base_events.py:323> took 0.177 
seconds
returning true from eof_received() has no effect when using ssl
returning true from eof_received() has no effect when using ssl

--
nosy: +martin.panter

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com



[issue25272] asyncio tests are getting noisy

2015-09-29 Thread Guido van Rossum

New submission from Guido van Rossum:

In 3.5 and up the asyncio test are pretty chatty with warnings. E.g. a recent 
run gave me this in 3.5:

./python.exe -m test.test_asyncio
.../Users/guido/src/cpython/Lib/asyncio/selector_events.py:574:
 ResourceWarning: unclosed transport <_SelectorSslTransport closing fd=27>
  warnings.warn("unclosed transport %r" % self, ResourceWarning)
Task was destroyed but it is pending!
task:  
wait_for=>
.Task 
was destroyed but it is pending!
task:  
wait_for=>
/Users/guido/src/cpython/Lib/asyncio/selector_events.py:574: ResourceWarning: 
unclosed transport <_SelectorSocketTransport closing fd=26>
  warnings.warn("unclosed transport %r" % self, ResourceWarning)
...returning
 true from eof_received() has no effect when using ssl
...returning true from eof_received() has no effect when using ssl
...ss
--
Ran 939 tests in 25.032s

OK (skipped=2)

--
components: asyncio
messages: 251875
nosy: gvanrossum, haypo, yselivanov
priority: normal
severity: normal
status: open
title: asyncio tests are getting noisy
type: resource usage
versions: Python 3.5, Python 3.6

___
Python tracker 

___
___
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com