예제 #1
0
def where (co):
    """Return a string indicating where the given coroutine thread is currently
    running.

    :Parameters:
        - `co`: The coroutine object.

    :Return:
        Returns a string displaying where the coro thread is currently
        executing.
    """
    f = co.get_frame()
    return tb.stack_string(f)
예제 #2
0
def where(co):
    """Return a string indicating where the given coroutine thread is currently
    running.

    :Parameters:
        - `co`: The coroutine object.

    :Return:
        Returns a string displaying where the coro thread is currently
        executing.
    """
    f = co.get_frame()
    return tb.stack_string(f)
예제 #3
0
 def test_stack_string(self):
     ss = tb.stack_string()
     if not ss.startswith('[test_tb.py test_stack_string|16] '):
         self.fail('Did not start correctly: %r' % (ss, ))
예제 #4
0
파일: test_tb.py 프로젝트: bobveznat/aplib
 def test_stack_string(self):
     ss = tb.stack_string()
     if not ss.startswith('[test_tb.py test_stack_string|16] '):
         self.fail('Did not start correctly: %r' % (ss,))