[New-bugs-announce] [issue19830] test_poplib emits resource warning

Vajrasky Kok report at bugs.python.org
Fri Nov 29 11:52:52 CET 2013


New submission from Vajrasky Kok:

$ ./python Lib/test/test_poplib.py
<omitted....>
test_uidl (__main__.TestPOP3_TLSClass) ... ok
test_user (__main__.TestPOP3_TLSClass) ... ok

----------------------------------------------------------------------
Ran 62 tests in 4.994s

OK
/home/ethan/Documents/code/python/cpython3.4/Lib/test/support/__init__.py:1331: ResourceWarning: unclosed <ssl.SSLSocket fd=5, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('127.0.0.1', 46785), raddr=('127.0.0.1', 55396)>
  gc.collect()


Attached the patch to fix the resource warning.

----------
components: Tests
files: fix_test_poplib_resource_warning.patch
keywords: patch
messages: 204716
nosy: vajrasky
priority: normal
severity: normal
status: open
title: test_poplib emits resource warning
type: resource usage
versions: Python 3.4
Added file: http://bugs.python.org/file32886/fix_test_poplib_resource_warning.patch

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19830>
_______________________________________


More information about the New-bugs-announce mailing list