Changeset 143

Show
Ignore:
Timestamp:
Thu Dec 7 11:51:36 2006
Author:
jpellerin
Message:

Fixed a flow error in fix for #95

Files:

Legend:

Unmodified
Added
Removed
Modified
  • trunk/nose/inspector.py

    r142 r143  
    34 34     # figure out the set of lines to grab.  
    35 35     inspect_lines, mark_line = find_inspectable_lines(lines, exc_line)  
      36     src = StringIO(textwrap.dedent(''.join(inspect_lines)))  
      37     exp = Expander(frame.f_locals, frame.f_globals)  
      38  
    36 39     while inspect_lines:  
    37           src = StringIO(textwrap.dedent(''.join(inspect_lines)))  
    38           exp = Expander(frame.f_locals, frame.f_globals)  
    39 40         try:  
    40 41             tokenize.tokenize(src.readline, exp)  
     
    46 47             inspect_lines.pop(0)  
    47 48             mark_line -= 1  
      49             src = StringIO(textwrap.dedent(''.join(inspect_lines)))  
      50             exp = Expander(frame.f_locals, frame.f_globals)  
    48 51             continue  
    49 52         break