Lines 158-166
class TestAssertMessage(unittest.TestCase):
Link Here
|
158 |
|
158 |
|
159 |
# Some CI environments disable ptrace (as they’re running in a |
159 |
# Some CI environments disable ptrace (as they’re running in a |
160 |
# container). If so, skip the test as there’s nothing we can do. |
160 |
# container). If so, skip the test as there’s nothing we can do. |
161 |
if ( |
161 |
if result.info.returncode != 0 and ( |
162 |
result.info.returncode != 0 |
162 |
"ptrace: Operation not permitted" in result.err |
163 |
and "ptrace: Operation not permitted" in result.err |
163 |
or "warning: opening /proc/PID/mem file for lwp" in result.err |
164 |
): |
164 |
): |
165 |
self.skipTest("GDB is not functional due to ptrace being disabled") |
165 |
self.skipTest("GDB is not functional due to ptrace being disabled") |
166 |
|
166 |
|
167 |
- |
|
|