title: python doctest: expected result is the same as the "got" result but the test failed
body: <p>I am on a learning stage of using python as a tool for software QA.</p>
  
  <p>I wrote the next simple test in order to find the letter 'a' in a text file number matrix.
  problem is that the test fails even though the expect equals to what i got.</p>
  
  <p>Why is that? Can you tell me what am I doing wrong?</p>
  
  <p><strong>test script:</strong> </p>
  
  <pre><code>fin = open("abc.txt", "r")
  
  arr_fin = []
  
  for line in fin:
      arr_fin.append(line.split())
  
  print arr_fin
  
  for row in arr_fin:     
     arr_fin_1 = " ".join('{0:4}'.format(i or " ") for i in row) 
     print arr_fin_1
  
  
  
  def find_letter(x, arr_fin_1):
      """
      &gt;&gt;&gt; find_letter('a', arr_fin_1)
      97 
      """
      t=ord(x) #exchange to letter's ASCII value
      for i in arr_fin_1:
          if i==x:
              print t
              return;
  
  def _test():
      import doctest
      doctest.testmod()
  
  if __name__ == "__main__":
      _test()
  </code></pre>
  
  <p><strong>error message:</strong></p>
  
  <pre><code>Expected:
      97 
  Got:
      97
  **********************************************************************
  1 items had failures:
     1 of   1 in __main__.find_letter
  ***Test Failed*** 1 failures.
  </code></pre>