closes bpo-34004: Skip lock interruption tests on musl. (GH-9224) · python/cpython@5a435ea (original) (raw)

`@@ -78,6 +78,10 @@ def alarm_interrupt(self, sig, frame):

`

78

78

``

79

79

`@unittest.skipIf(USING_PTHREAD_COND,

`

80

80

`'POSIX condition variables cannot be interrupted')

`

``

81

`+

@unittest.skipIf(sys.platform.startswith('linux') and

`

``

82

`+

not sys.thread_info.version,

`

``

83

`+

'Issue 34004: musl does not allow interruption of locks '

`

``

84

`+

'by signals.')

`

81

85

`# Issue #20564: sem_timedwait() cannot be interrupted on OpenBSD

`

82

86

`@unittest.skipIf(sys.platform.startswith('openbsd'),

`

83

87

`'lock cannot be interrupted on OpenBSD')

`

`@@ -105,6 +109,10 @@ def test_lock_acquire_interruption(self):

`

105

109

``

106

110

`@unittest.skipIf(USING_PTHREAD_COND,

`

107

111

`'POSIX condition variables cannot be interrupted')

`

``

112

`+

@unittest.skipIf(sys.platform.startswith('linux') and

`

``

113

`+

not sys.thread_info.version,

`

``

114

`+

'Issue 34004: musl does not allow interruption of locks '

`

``

115

`+

'by signals.')

`

108

116

`# Issue #20564: sem_timedwait() cannot be interrupted on OpenBSD

`

109

117

`@unittest.skipIf(sys.platform.startswith('openbsd'),

`

110

118

`'lock cannot be interrupted on OpenBSD')

`