Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 541070
Collapse All | Expand All

(-)Lib/test/test_socket.py.orig (-8 lines)
Lines 1705-1718 Link Here
1705
    The TIPC module is not loaded automatically on Ubuntu and probably
1705
    The TIPC module is not loaded automatically on Ubuntu and probably
1706
    other Linux distros.
1706
    other Linux distros.
1707
    """
1707
    """
1708
    if not hasattr(socket, "AF_TIPC"):
1709
        return False
1710
    if not os.path.isfile("/proc/modules"):
1711
        return False
1712
    with open("/proc/modules") as f:
1713
        for line in f:
1714
            if line.startswith("tipc "):
1715
                return True
1716
    return False
1708
    return False
1717
1709
1718
@unittest.skipUnless(isTipcAvailable(),
1710
@unittest.skipUnless(isTipcAvailable(),

Return to bug 541070