Page MenuHomePhabricator

Unexpected ResourceWarning in TestDeprecatedDataSiteMethods.test_get_sitelinks
Closed, ResolvedPublic

Description

https://travis-ci.org/wikimedia/pywikibot/jobs/330228531#L4531

_______________ TestDeprecatedDataSiteMethods.test_get_sitelinks _______________
self = <tests.wikibase_tests.TestDeprecatedDataSiteMethods testMethod=test_get_sitelinks>
    def test_get_sitelinks(self):
        """Test get_sitelinks."""
        data = self.repo.get_sitelinks(60)
>       self.assertOneDeprecation()
tests/wikibase_tests.py:2004: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
tests/aspects.py:1674: in assertOneDeprecation
    self.assertDeprecation(msg)
tests/aspects.py:1661: in assertDeprecation
    self.assertDeprecationFile(self.expect_warning_filename)
tests/aspects.py:1704: in assertDeprecationFile
    % (filename, item))
E   AssertionError: expected warning filename /home/travis/build/wikimedia/pywikibot/tests/wikibase_tests.py; warning item: {message : ResourceWarning("unclosed <ssl.SSLSocket fd=10, family=AddressFamily.AF_INET, type=2049, proto=6, laddr=('172.17.0.16', 38136), raddr=('208.80.154.224', 443)>",), category : 'ResourceWarning', filename : '/opt/python/3.4.6/lib/python3.4/http/cookiejar.py', lineno : 1648, line : None}

See also: T184996

Event Timeline

This comment was removed by Dalba.

Change 404953 had a related patch set uploaded (by Dalba; owner: Dalba):
[pywikibot/core@master] utils.py: Ignore unclosed SSLSocket ResourceWarning

https://gerrit.wikimedia.org/r/404953

Change 404953 merged by jenkins-bot:
[pywikibot/core@master] utils.py: Ignore unclosed SSLSocket ResourceWarning

https://gerrit.wikimedia.org/r/404953