aboutsummaryrefslogtreecommitdiff
path: root/.travis.yml
diff options
context:
space:
mode:
authorStephen Finucane <stephen@that.guru>2020-04-09 10:46:13 +0100
committerStephen Finucane <stephen@that.guru>2020-04-09 10:49:23 +0100
commita2b08509275be5ab08d61e54fa2e430cef0b3442 (patch)
tree87145161296d77cf07afc52d1cdf2cf7c85df4c7 /.travis.yml
parentabfd2df5485d313a2835b60afdeb40731448b5b0 (diff)
downloadpatchwork-a2b08509275be5ab08d61e54fa2e430cef0b3442.tar
patchwork-a2b08509275be5ab08d61e54fa2e430cef0b3442.tar.gz
tests: Close XML-RPC client when done
This resolves the following irritating warnings that were popping up on Python 3.7 and 3.8 and were silenced on 3.6: /usr/lib/python3.7/unittest/suite.py:107: ResourceWarning: unclosed <socket.socket ...> Note that we need to use a subclass because the 'ServerProxy' class, rather annoyingly, does not expose a 'close()' method. Instead, you're expected to use a context manager, which isn't useful from the context of a 'setUp' call. We could call '__enter__' and '__exit__' manually but this seems cleaner. Also note that 'Server' was an alias of 'ServerProxy' [1], and we're taking the opportunity to switch here. [1] https://docs.python.org/3/library/xmlrpc.client.html#xmlrpc.client.ServerProxy Signed-off-by: Stephen Finucane <stephen@that.guru>
Diffstat (limited to '.travis.yml')
0 files changed, 0 insertions, 0 deletions