[issue27746] ResourceWarnings in test_asyncio

2017-12-20 Thread Andrew Svetlov

Andrew Svetlov  added the comment:

Fixed in master already.

--
nosy: +asvetlov
resolution:  -> out of date
stage: patch review -> resolved
status: open -> closed

___
Python tracker 

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



[issue27746] ResourceWarnings in test_asyncio

2016-08-21 Thread STINNER Victor

STINNER Victor added the comment:

STINNER Victor added the comment:
> @Paul: close() is asynchronous in Python :-)

Sorry. Async in asyncio...

--

___
Python tracker 

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



[issue27746] ResourceWarnings in test_asyncio

2016-08-21 Thread STINNER Victor

STINNER Victor added the comment:

@Paul: close() is asynchronous in Python :-)

--

___
Python tracker 

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



[issue27746] ResourceWarnings in test_asyncio

2016-08-21 Thread Paul McGuire

Paul McGuire added the comment:

Ok, I will submit as a separate issue.

--

___
Python tracker 

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



[issue27746] ResourceWarnings in test_asyncio

2016-08-21 Thread Xiang Zhang

Xiang Zhang added the comment:

The patch I submitted is about to solve the resource leak in the test suite. 
Paul, your problem seems to need other triage.

--

___
Python tracker 

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



[issue27746] ResourceWarnings in test_asyncio

2016-08-21 Thread Martin Panter

Changes by Martin Panter :


--
stage: needs patch -> patch review

___
Python tracker 

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



[issue27746] ResourceWarnings in test_asyncio

2016-08-21 Thread Paul McGuire

Paul McGuire added the comment:

I was about to report this same issue - I get the error message even though I 
explicitly call transport.close(): 

C:\Python35\lib\asyncio\selector_events.py:582: ResourceWarning: unclosed 
transport <_SelectorDatagramTransport closing fd=232>

It looks like the _sock attribute of the Transport subclasses must be set to 
None in their close() methods. (The presence of a non-None _sock is used 
elsewhere as an indicator of whether the transport has been closed or not.

--
nosy: +Paul McGuire

___
Python tracker 

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



[issue27746] ResourceWarnings in test_asyncio

2016-08-18 Thread Xiang Zhang

Xiang Zhang added the comment:

>From my observations, this is due to transport is forgotten to close in 
>test_connect_accepted_socket. Upload a patch to add the close function.

--
keywords: +patch
nosy: +xiang.zhang
Added file: http://bugs.python.org/file44139/issue27746.patch

___
Python tracker 

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



[issue27746] ResourceWarnings in test_asyncio

2016-08-17 Thread STINNER Victor

STINNER Victor added the comment:

I marked the issue #272989 as a duplicate of this one. Copy of the msg272986 by 
Terry J. Reedy:

3.6, Windows 10, debug build. The following appeared before and after pulling 
and rebuilding today. I am reporting as per Victor's request on pydev list.

0:00:22 [ 52/402] test_asyncio passed
F:\Python\dev\36\lib\asyncio\sslproto.py:329: ResourceWarning: unclosed 
transport 
  source=self)
F:\Python\dev\36\lib\asyncio\sslproto.py:329: ResourceWarning: unclosed 
transport 
  source=self)
F:\Python\dev\36\lib\asyncio\sslproto.py:329: ResourceWarning: unclosed 
transport 
  source=self)

--

___
Python tracker 

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



[issue27746] ResourceWarnings in test_asyncio

2016-08-12 Thread Martin Panter

New submission from Martin Panter:

$ ./python -bWerror -m test -r -u all
. . .
0:12:58 [ 70/402] test_asyncio
Exception ignored in: >
Traceback (most recent call last):
  File "/media/disk/home/proj/python/cpython/Lib/asyncio/sslproto.py", line 
329, in __del__
source=self)
ResourceWarning: unclosed transport 
Exception ignored in: >
Traceback (most recent call last):
  File "/media/disk/home/proj/python/cpython/Lib/asyncio/sslproto.py", line 
329, in __del__
source=self)
ResourceWarning: unclosed transport 
Exception ignored in: >
Traceback (most recent call last):
  File "/media/disk/home/proj/python/cpython/Lib/asyncio/sslproto.py", line 
329, in __del__
source=self)
ResourceWarning: unclosed transport 
Executing .start() done, defined at 
/media/disk/home/proj/python/cpython/Lib/test/test_asyncio/test_pep492.py:149> 
result=None created at 
/media/disk/home/proj/python/cpython/Lib/asyncio/base_events.py:367> took 0.351 
seconds

If necessary, you should be able to run with python -Wall -X tracemalloc=33 to 
get a stack dump where the resources (transport objects or whatever) were 
allocated.

--
components: Tests, asyncio
messages: 272529
nosy: gvanrossum, haypo, martin.panter, yselivanov
priority: normal
severity: normal
stage: needs patch
status: open
title: ResourceWarnings in test_asyncio
type: behavior
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