classification
Title: test_poplib started to log a lot of ResourceWarning warnings on AMD64 Windows8.1 Refleaks 3.x
Type: resource usage Stage: resolved
Components: Tests Versions: Python 3.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: haypo
Priority: normal Keywords: patch

Created on 2017-09-13 10:47 by haypo, last changed 2017-09-13 16:08 by haypo. This issue is now closed.

Pull Requests
URL Status Linked Edit
PR 3542 merged haypo, 2017-09-13 12:19
PR 3543 merged python-dev, 2017-09-13 12:53
Messages (3)
msg302057 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-09-13 10:47
On AMD64 Windows8.1 Refleaks 3.x buildbot, test_poplib started to log a lot of ResourceWarning warnings since the build 101:

http://buildbot.python.org/all/builders/AMD64%20Windows8.1%20Refleaks%203.x/builds/101/

2:30:30 [388/405/3] test_poplib passed (64 sec) -- running: test_pickletools (117 sec), test_multiprocessing_main_handling (145 sec)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\ssl.py:391: ResourceWarning: unclosed <socket.socket [closed] fd=840, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  self = _SSLContext.__new__(cls, protocol)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\ssl.py:391: ResourceWarning: unclosed <socket.socket [closed] fd=804, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  self = _SSLContext.__new__(cls, protocol)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\ssl.py:391: ResourceWarning: unclosed <socket.socket [closed] fd=816, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  self = _SSLContext.__new__(cls, protocol)
beginning 6 repetitions
123456
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:433: ResourceWarning: unclosed <socket.socket [closed] fd=664, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  return _intenum_converter(super().family, AddressFamily)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:433: ResourceWarning: unclosed <socket.socket [closed] fd=1488, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  return _intenum_converter(super().family, AddressFamily)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:433: ResourceWarning: unclosed <socket.socket [closed] fd=1528, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  return _intenum_converter(super().family, AddressFamily)
.D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:144: ResourceWarning: unclosed <socket.socket [closed] fd=1072, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  _socket.socket.__init__(self, family, type, proto, fileno)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:144: ResourceWarning: unclosed <socket.socket [closed] fd=1712, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  _socket.socket.__init__(self, family, type, proto, fileno)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:144: ResourceWarning: unclosed <socket.socket [closed] fd=1740, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  _socket.socket.__init__(self, family, type, proto, fileno)
.D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:439: ResourceWarning: unclosed <socket.socket [closed] fd=1344, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  return _intenum_converter(super().type, SocketKind)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:439: ResourceWarning: unclosed <socket.socket [closed] fd=1040, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  return _intenum_converter(super().type, SocketKind)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:439: ResourceWarning: unclosed <socket.socket [closed] fd=1392, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  return _intenum_converter(super().type, SocketKind)
.D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:439: ResourceWarning: unclosed <socket.socket [closed] fd=1436, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  return _intenum_converter(super().type, SocketKind)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:439: ResourceWarning: unclosed <socket.socket [closed] fd=1428, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  return _intenum_converter(super().type, SocketKind)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:439: ResourceWarning: unclosed <socket.socket [closed] fd=740, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  return _intenum_converter(super().type, SocketKind)
.D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:439: ResourceWarning: unclosed <socket.socket [closed] fd=660, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  return _intenum_converter(super().type, SocketKind)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:439: ResourceWarning: unclosed <socket.socket [closed] fd=1676, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  return _intenum_converter(super().type, SocketKind)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:439: ResourceWarning: unclosed <socket.socket [closed] fd=1320, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  return _intenum_converter(super().type, SocketKind)
.D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:144: ResourceWarning: unclosed <socket.socket [closed] fd=1392, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  _socket.socket.__init__(self, family, type, proto, fileno)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:144: ResourceWarning: unclosed <socket.socket [closed] fd=1196, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  _socket.socket.__init__(self, family, type, proto, fileno)
D:\buildarea\3.x.ware-win81-release.refleak\build\lib\socket.py:144: ResourceWarning: unclosed <socket.socket [closed] fd=1896, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0>
  _socket.socket.__init__(self, family, type, proto, fileno)

Git log build 100..build 101:

haypo@selma$ git log 829dacce4fca60fc3c3367980e75e21dfcdbe6be..c0c29dff7940b7e7ecc1dd051080c5d5f9e42ba8
commit c0c29dff7940b7e7ecc1dd051080c5d5f9e42ba8
Author: Stefan Krah <skrah@bytereef.org>
Date:   Sat Sep 9 19:26:22 2017 +0200

    bpo-31403: Remove WITHOUT_THREADS from _decimal. (#3474)

commit a7fbad96c8631070c1db137635d5bdd5e2aaac50
Author: Sergey Fedoseev <fedoseev.sergey@gmail.com>
Date:   Sat Sep 9 21:39:36 2017 +0500

    Make `json.dumps()` example to be PEP-8 compliant. (GH-3472)

commit b84bcc48ae31c385fe480c08c05d95212ef7fcdc
Author: Steve Dower <steve.dower@microsoft.com>
Date:   Sat Sep 9 06:13:06 2017 -0700

    bpo-31392: Update SSL build for 1.1.0 (#3448)

commit efb1d0a3c001a6153211063ba439b9847aa03509
Author: Gregory P. Smith <greg@krypto.org>
Date:   Sat Sep 9 00:30:15 2017 -0700

    bpo-29639: change test.support.HOST to "localhost"
    
    test.support.HOST should be "localhost" as it was in the past. See the bpo-29639.
    
    Tests that need the IP address should use HOSTv4 (added) or the existing HOSTv6 constant.
    
    This changes the definition and fixes tests that needed updating to deal with HOST being
    the hostname rather than the hardcoded IP address.
    
    This is only the first step in addressing https://bugs.python.org/issue29639.
msg302069 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-09-13 12:53
New changeset d165e14e29b45a22450263722f5c2c386c3a748a by Victor Stinner in branch 'master':
bpo-31448, test_poplib: Fix ResourceWarning (#3542)
https://github.com/python/cpython/commit/d165e14e29b45a22450263722f5c2c386c3a748a
msg302073 - (view) Author: STINNER Victor (haypo) * (Python committer) Date: 2017-09-13 13:09
New changeset 769ddb075ac3a840d473930a12a5b72bfbab366f by Victor Stinner (Miss Islington (bot)) in branch '3.6':
[3.6] bpo-31448, test_poplib: Fix ResourceWarning (GH-3542) (#3543)
https://github.com/python/cpython/commit/769ddb075ac3a840d473930a12a5b72bfbab366f
History
Date User Action Args
2017-09-13 16:08:12hayposetstatus: open -> closed
resolution: fixed
stage: patch review -> resolved
2017-09-13 13:09:46hayposetmessages: + msg302073
2017-09-13 12:53:27python-devsetpull_requests: + pull_request3537
2017-09-13 12:53:14hayposetmessages: + msg302069
2017-09-13 12:19:23hayposetkeywords: + patch
stage: patch review
pull_requests: + pull_request3536
2017-09-13 12:18:09hayposettitle: test_pop started to log a lot of ResourceWarning warnings on AMD64 Windows8.1 Refleaks 3.x -> test_poplib started to log a lot of ResourceWarning warnings on AMD64 Windows8.1 Refleaks 3.x
2017-09-13 10:47:38hayposetcomponents: + Tests
2017-09-13 10:47:32haypocreate