New submission from Claudiu.Popa: Hello! The attached patch fixes a crash for the logging tests on Windows. That's because the tests assume that socket.AF_UNIX exists. The actual traceback is:
[1/1] test_logging test test_logging crashed -- Traceback (most recent call last): File "D:\Projects\cpython\lib\test\regrtest.py", line 1271, in runtest_inner the_module = importlib.import_module(abstest) File "D:\Projects\cpython\lib\importlib\__init__.py", line 109, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 2203, in _gcd_import File "<frozen importlib._bootstrap>", line 2186, in _find_and_load File "<frozen importlib._bootstrap>", line 2175, in _find_and_load_unlocked File "<frozen importlib._bootstrap>", line 1149, in _load_unlocked File "<frozen importlib._bootstrap>", line 1420, in exec_module File "<frozen importlib._bootstrap>", line 321, in _call_with_frames_removed File "D:\Projects\cpython\lib\test\test_logging.py", line 863, in <module> class TestUnixStreamServer(TestTCPServer): File "D:\Projects\cpython\lib\test\test_logging.py", line 864, in TestUnixStreamServer address_family = socket.AF_UNIX AttributeError: module 'socket' has no attribute 'AF_UNIX' 1 test failed: test_logging ---------- components: Tests files: logging_windows.patch keywords: patch messages: 219572 nosy: Claudiu.Popa, vinay.sajip priority: normal severity: normal status: open title: test_logging fails on Windows for Unix tests type: behavior versions: Python 3.5 Added file: http://bugs.python.org/file35449/logging_windows.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue21636> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com