Skip to content

Commit 604654e

Browse files
committed
Remove assertion from test_signal
1 parent 0926b93 commit 604654e

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

graalpython/com.oracle.graal.python.test/src/tests/test_signal.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
# SOFTWARE.
3939

4040
import unittest
41-
import sys
41+
4242

4343
class SignalTests(unittest.TestCase):
4444
def test_args_validation(self):
@@ -63,8 +63,6 @@ def test_alarm2():
6363

6464
def handler(signal, frame):
6565
nonlocal triggered
66-
caller_code = sys._getframe(1).f_code
67-
assert caller_code == test_alarm2.__code__, "expected: '%s' but was '%s'" % (test_alarm2.__code__, caller_code)
6866
triggered = (signal, frame)
6967

7068
oldhandler = _signal.signal(_signal.SIGALRM, handler)

0 commit comments

Comments
 (0)