|
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(), |