This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author Claudiu.Popa
Recipients Claudiu.Popa, vinay.sajip
Date 2014-06-02.12:08:04
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1401710886.02.0.477196049958.issue21636@psf.upfronthosting.co.za>
In-reply-to
Content
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
History
Date User Action Args
2014-06-02 12:08:06Claudiu.Popasetrecipients: + Claudiu.Popa, vinay.sajip
2014-06-02 12:08:06Claudiu.Popasetmessageid: <1401710886.02.0.477196049958.issue21636@psf.upfronthosting.co.za>
2014-06-02 12:08:05Claudiu.Popalinkissue21636 messages
2014-06-02 12:08:05Claudiu.Popacreate