New submission from Steap: In Lib/test/test_socket.py, testGetServBy calls socket.getservbyname(), which needs /etc/services (see "man getservbyname"). If this file is not found, the test fails instead of being skipped.
The attached patch was written against the latest revision of the Mercurial repository. It might be worth applying it for every currently supported version of Python. ---------- files: skip_testGetServBy.patch keywords: patch messages: 212910 nosy: Steap priority: normal severity: normal status: open title: Lib/test/test_socket.py: skip testGetServBy if /etc/services is not found Added file: http://bugs.python.org/file34304/skip_testGetServBy.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20868> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com