import __pypy__, thread, signal, time, sys
+ print('subthread started')
'subthread stops, interrupted=%r' % (interrupted,)
+ print'subthread stops, interrupted=%r' % (interrupted,)
# This is normally called by app_main.py
'main thread loop done'
+ print'main thread loop done'
assert len(interrupted) == 1
assert 'KeyboardInterrupt' in interrupted.__class__.__name__
# signal() only works from the 'main' thread