New submission from Vajrasky Kok: Enable SELinux (by default it is already enabled). Then load tipc module.
# modprobe tipc Then using whatever account, execute Lib/test/test_socket.py. You'll get: FAILED (errors=1, skipped=4) Traceback (most recent call last): File "Lib/test/test_socket.py", line 1740, in <module> test_main() File "Lib/test/test_socket.py", line 1736, in test_main test_support.run_unittest(*tests) File "/home/sky/Code/python/cpython2.7/Lib/test/test_support.py", line 1251, in run_unittest _run_suite(suite) File "/home/sky/Code/python/cpython2.7/Lib/test/test_support.py", line 1234, in _run_suite raise TestFailed(err) test.test_support.TestFailed: Traceback (most recent call last): File "Lib/test/test_socket.py", line 1705, in testStream msg = self.conn.recv(1024) error: [Errno 13] Permission denied Attached the patch to skip the test if we don't have sufficient permission to execute the test. ---------- components: Tests files: skip_test_if_selinux_tipc.patch keywords: patch messages: 208088 nosy: vajrasky priority: normal severity: normal status: open title: test_socket fails if using tipc module and SELinux enabled type: behavior versions: Python 2.7, Python 3.3, Python 3.4 Added file: http://bugs.python.org/file33462/skip_test_if_selinux_tipc.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20257> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com