def test_identifier(): frame = sys._current_frames()[get_thread_identity()] assert identifier(frame) == identifier(frame) assert identifier(None) == identifier(None)
def test_identifier(): frame = sys._current_frames()[threading.get_ident()] assert identifier(frame) == identifier(frame) assert identifier(None) == identifier(None)